We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f93b5 commit fe31eadCopy full SHA for fe31ead
Docker/nginx-docker-compose.yml
@@ -1,6 +1,6 @@
1
services:
2
nginx:
3
- image: nginx
+ image: nginx # nginx:alpine
4
container_name: nginx
5
restart: always
6
ports:
post/deploy/docker-env-install.md
@@ -39,14 +39,15 @@ services:
39
40
# Nginx
41
42
-- docker pull nginx
+- docker pull nginx,若对镜像大小有要求,可使用 `nginx:alpine`
43
+- nginx:latest 约 200M,nginx:alpine 约 50M
44
45
新建 `/data/container/nginx` 文件夹,并在 `nginx` 目录下新建 `docker-compose.yml` 文件,写入以下内容
46
47
```yaml
48
49
50
51
52
53
0 commit comments