-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
41 lines (40 loc) · 1.09 KB
/
docker-compose.dev.yml
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
version: '3'
services:
nginx-web:
image: nginx:1.12-alpine
container_name: nginx-web
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ../conf.d:/etc/nginx/conf.d
- ../vhost.d:/etc/nginx/vhost.d
- ../html:/usr/share/nginx/html
- ../certs:/etc/nginx/certs:ro
- ../htpasswd:/etc/nginx/htpasswd:ro
logging:
options:
max-size: "4m"
max-file: "10"
nginx-gen:
image: jwilder/docker-gen:0.8.1
command: -notify-sighup nginx-web -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
container_name: nginx-gen
restart: always
volumes:
- ../conf.d:/etc/nginx/conf.d
- ../vhost.d:/etc/nginx/vhost.d
- ../html:/usr/share/nginx/html
- ../certs:/etc/nginx/certs:ro
- ../htpasswd:/etc/nginx/htpasswd:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
- ../nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
logging:
options:
max-size: "2m"
max-file: "10"
networks:
default:
external:
name: nginx-proxy