forked from boostcampwm-2021/web03-boocamWiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
31 lines (30 loc) · 782 Bytes
/
docker-compose.dev.yml
File metadata and controls
31 lines (30 loc) · 782 Bytes
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
version: '3.7'
services:
nginx:
image: nginx
restart: 'no'
container_name: dev-boocam-nginx
ports:
- '3002:80'
volumes:
- ./nginx/nginx-dev/build:/usr/share/nginx/html
- ./nginx/nginx-dev/nginx:/etc/nginx
pm2:
image: keymetrics/pm2:16-jessie
restart: 'no'
container_name: dev-boocam-pm2
ports:
- '3003:3001'
volumes:
- ./pm2/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
ports:
- '3307:3006'
restart: unless-stopped
container_name: dev-boocam-mysql
volumes:
- /var/lib/mysql-dev:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=qnzoadnlzl