-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
55 lines (55 loc) · 1.73 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
55 lines (55 loc) · 1.73 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
48
49
50
51
52
53
54
55
services:
nginx-proxy:
image: nginxproxy/nginx-proxy:latest
environment:
TRUST_DOWNSTREAM_PROXY: "true"
ports:
- "80:80"
- "443:443"
volumes:
- /etc/nginx/certs:/etc/nginx/certs:ro
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
# - /srv/nginx-proxy/conf.d:/etc/nginx/conf.d
restart: always
networks: # joins nginx-proxy to these networks
- dev_public
- prod_public
watchtower:
image: nickfedor/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
WATCHTOWER_NOTIFICATIONS: email
WATCHTOWER_NOTIFICATION_EMAIL_FROM: ${DEFAULT_EMAIL}
WATCHTOWER_NOTIFICATION_EMAIL_TO: ${DEFAULT_EMAIL}
WATCHTOWER_NOTIFICATION_EMAIL_SERVER: smtp.gmail.com
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: 587
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: ${DEFAULT_EMAIL}
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: ${WATCHTOWER_SMTP_PASSWORD}
deunhealth:
image: qmcgaw/deunhealth
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
LOG_LEVEL: info
HEALTHCHECK_INTERVAL: 30s
HEALTHCHECK_TIMEOUT: 10s
HEALTHCHECK_START_PERIOD: 30s
HEALTHCHECK_RETRIES: 3
networks: # external key imports other containers from these networks (dev_public and prod_public) so
# that containers within this docker-compose file can communicate with them
dev_public:
name: dev_public
external: true # Best to create these manually once: docker network create dev_public
prod_public:
name: prod_public
external: true
volumes:
certs:
vhost:
html:
acme: