-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.29 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
52
53
version: '3'
services:
client:
container_name: musigaero-client
build:
context: ./client
dockerfile: Dockerfile-client
env_file:
- .env
ports:
- 80:80
- 443:443
volumes:
- "./nginx/nginx.conf.template:/etc/nginx/nginx.conf.template"
- "$LOCAL_FULLCHAIN_LOCATION:$NGINX_FULLCHAIN_LOCATION"
- "$LOCAL_PRIVKEY_LOCATION:$NGINX_PRIVKEY_LOCATION"
restart: unless-stopped
server:
container_name: musigaero-server
build:
context: .
dockerfile: server/Dockerfile-server
env_file:
- .env
command: npm run start:prod
ports:
- $SERVER_API_PORT:$SERVER_API_PORT
volumes:
- "$LOCAL_FULLCHAIN_LOCATION:$SERVER_FULLCHAIN_LOCATION"
- "$LOCAL_PRIVKEY_LOCATION:$SERVER_PRIVKEY_LOCATION"
depends_on:
- db
deploy:
resources:
limits:
cpus: '0.50'
memory: 500M
db:
container_name: musigaero-mysql
image: mysql:8.0.29
volumes:
- './database/mysql/data:/var/lib/mysql'
- './database/mysql/securefile:/data/securefile'
env_file:
- .env
ports:
- $MYSQL_SERVER_PORT:$MYSQL_CONNECT_PORT
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci