-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
52 lines (46 loc) · 1.29 KB
/
docker-compose.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
42
43
44
45
46
47
48
49
50
51
52
version: "3.5"
services:
certbot:
image: certbot/certbot
container_name: certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
frontend:
image: sebleich/storage-manager:latest
container_name: storage-manager
hostname: storage-manager
labels:
com.centurylinklabs.watchtower.enable: true
networks:
- docker-service
healthcheck:
test: "exit 0"
watchtower:
image: containrrr/watchtower
container_name: storage-manager-watchtower
environment:
WATCHTOWER_POLL_INTERVAL: 30
volumes:
- /var/run/docker.sock:/var/run/docker.sock
nginx:
image: nginx:latest
container_name: reverseproxy
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
ports:
- "80:80"
- "443:443"
restart: always
networks:
- docker-service
depends_on:
frontend:
condition: service_healthy
volumes:
- ./rpx/nginx.conf:/etc/nginx/nginx.conf
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
networks:
docker-service:
driver: bridge