forked from tl-its-umich-edu/canvas-course-manager-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yml
37 lines (34 loc) · 936 Bytes
/
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
37
version: '3.8'
services:
web:
build:
context: ./ccm_web/
dockerfile: ./Dockerfile
args:
- PORT=4000
environment:
- PORT=4000
- NODE_ENV=production
env_file: .env
entrypoint: sh -c './node_modules/.bin/wait-port ccm_db_prod:3306 && ./start.sh'
ports:
- 4000:4000
container_name: ccm_web_prod
depends_on:
- database
database:
image: mysql:5.7
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
environment:
- MYSQL_ROOT_PASSWORD=ccm_root_pw
- MYSQL_HOST=ccm_db_prod
- MYSQL_PORT=3306
- MYSQL_DATABASE=ccm
- MYSQL_USER=admin
- MYSQL_PASSWORD=admin
entrypoint: ['docker-entrypoint.sh', '--default-authentication-plugin=mysql_native_password']
ports:
- 5400:3306
volumes:
- ./.mysql_data_prod:/var/lib/mysql:delegated
container_name: ccm_db_prod