forked from tl-its-umich-edu/my-learning-analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yml
36 lines (35 loc) · 895 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
version: '3.7'
services:
mysql:
image: mysql:5.7.22
restart: on-failure
environment:
- MYSQL_HOST=${MYSQL_HOST}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_PORT=${MYSQL_PORT}
entrypoint: ['docker-entrypoint.sh', '--default-authentication-plugin=mysql_native_password']
ports:
- "5306:3306"
volumes:
- ./.data/mysql:/var/lib/mysql
- ./mysql:/docker-entrypoint-initdb.d/:ro
container_name: student_dashboard_mysql
web:
build:
context: .
args:
TZ: ${TZ}
command: bash -c "/code/start.sh"
ports:
- "5001:5000"
depends_on:
- mysql
env_file:
- .env
environment:
- DJANGO_DEBUG=False
- DEBUG=False
container_name: student_dashboard