-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (41 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
47 lines (41 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# docker-compose build
# docker-compose up -d web
version: '3'
volumes:
nginx-logs:
nginx-html:
nginx-conf:
nginx-sites:
nginx-ssl:
services:
nginx:
image: nginx:latest
container-name: nginx-sekm
volumes:
#- nginx-conf:/etc/nginx/nginx.conf
#- nginx-data:/usr/share/nginx/html
- ./logs:/var/log/nginx
- ./html:/usr/share/nginx/html:ro
- ./conf/nginx.conf:/etc/nginx/nginx.conf
- ./conf/sites:/etc/nginx/sites
- ./conf/ssl:/etc/nginx/ssl \
environment:
- NGINX_HOST=docker.sysnet.nagano
ports:
- 80:80
- 443:443
restart: unless-stopped
networks:
- nginx_network
healthcheck:
test: "exit 0"
networks:
nginx_network:
external: true
# docker run --name nginx-sekm -p 80:80 -p 443:443 \
# -v $HOME/nginx-sekm/logs:/var/log/nginx \
# -v $HOME/nginx-sekm/html:/usr/share/nginx/html:ro \
# -v $HOME/nginx-sekm/conf/nginx.conf:/etc/nginx/nginx.conf \
# -v $HOME/nginx-sekm/conf/sites:/etc/nginx/sites \
# -v $HOME/nginx-sekm/conf/ssl:/etc/nginx/ssl \
# -d nginx