forked from boostcampwm-2021/web03-boocamWiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
36 lines (35 loc) · 1.11 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
version: '3.7'
services:
nginx:
image: nginx
container_name: boocam-nginx
network_mode: 'host'
restart: unless-stopped
volumes:
- ./nginx/nginx-prod/build:/usr/share/nginx/html
- ./nginx/nginx-prod/nginx:/etc/nginx
- ./certbot/conf:/etc/letsencrypt
- ./certbot/data:/var/www/certbot
pm2:
image: keymetrics/pm2:16-jessie
container_name: boocam-pm2
network_mode: 'host'
restart: unless-stopped
volumes:
- ./node/dist:/dist
command: sh -c "ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime && pm2 start /dist/app.js -f -i max && tail -f /dev/null"
mysql:
image: mysql:5.7.36
network_mode: 'host'
restart: unless-stopped
volumes:
- /var/lib/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=qnzoadnlzl
certbot:
image: certbot/certbot
command: certonly --webroot --webroot-path=/var/www/certbot --email [email protected] --agree-tos --no-eff-email -d boocamwiki.kr
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/data:/var/www/certbot
- ./certbot/logs:/var/log/letsencrypt