-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.23 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
version: '3.8'
services:
web:
image: web:latest
build:
context: .
dockerfile: ./apps/web/Dockerfile
ports:
- "3000:3000"
shop-admin:
image: shop-admin:latest
build:
context: .
dockerfile: ./apps/shop-admin/Dockerfile
ports:
- "3001:3001"
super-admin:
image: super-admin:latest
build:
context: .
dockerfile: ./apps/super-admin/Dockerfile
ports:
- "3002:3002"
nginx:
image: nginx:latest
build:
context: .
dockerfile: ./nginx/Dockerfile
restart: always
ports:
- '80:80'
- '443:443'
environment:
- TZ=Asia/Seoul
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./data/certbot/www:/var/www/certbot
- ./data/certbot/conf:/etc/letsencrypt
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
depends_on:
- web
- shop-admin
- super-admin
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/www:/var/www/certbot
- ./data/certbot/conf:/etc/letsencrypt
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
depends_on:
- nginx