-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
42 lines (38 loc) · 1.1 KB
/
docker-compose.prod.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
services:
blue:
container_name: blue
image: seungwoncode/toollit-server-app:latest
restart: unless-stopped
ports:
- '4001:4000'
green:
container_name: green
image: seungwoncode/toollit-server-app:latest
restart: unless-stopped
ports:
- '4002:4000'
# app:
# container_name: app
# image: seungwoncode/toollit-server-app:latest
# restart: unless-stopped
# ports:
# - '4000:4000'
nginx:
container_name: nginx
image: seungwoncode/toollit-server-nginx:latest
restart: unless-stopped
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
ports:
- '80:80'
- '443:443'
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
certbot:
container_name: certbot
image: certbot/certbot
restart: unless-stopped
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"