-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
40 lines (37 loc) · 995 Bytes
/
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
version: '3'
services:
nginx:
image: nginx:1.16.1
container_name: nginx
ports:
- '80:80'
- '443:443'
restart: always
volumes:
- /etc/letsencrypt:/etc/letsencrypt
- ./nginx/default.conf.template:/etc/nginx/conf.d/default.conf.template
env_file:
- ./.env
command: /bin/bash -c "envsubst < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"
trycatch:
image: node:12.13.0
container_name: trycatch
volumes:
- ./:/app/
working_dir: /app/server/
user: root
command: bash -c "npm install yarn pm2 -g && yarn install && yarn workspace client build && pm2-runtime bin/www"
restart: always
env_file:
- ./.env
mysql:
image: mysql:5.7
container_name: mysql
volumes:
- ./mysql.cnf:/etc/mysql/conf.d/custom.cnf
- ./mysql/data:/var/lib/mysql
restart: always
env_file:
- ./.env
ports:
- '3306:3306'