-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 956 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 956 Bytes
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
version: "3"
networks:
edge:
name: edge
volumes:
nginx_:
vhost_:
certs_:
html_:
services:
###########
## PROXY ##
###########
nginx:
image: ${REGISTRY}/nginx:latest
container_name: $COMPOSE_PROJECT_NAME.nginx
restart: always
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
ports:
- "80:80"
- "443:443"
networks:
- edge
volumes:
- vhost_:/etc/nginx/vhost.d
- nginx_:/etc/nginx/conf.d
- certs_:/etc/nginx/certs
- html_:/usr/share/nginx/html
dockergen:
image: ${REGISTRY}/dockergen:latest
container_name: $COMPOSE_PROJECT_NAME.dockergen
restart: always
command: -notify-sighup $COMPOSE_PROJECT_NAME.nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
networks:
- edge
volumes_from:
- nginx
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro