forked from drbfraser/CRADLE-Platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (40 loc) · 1.26 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
#########################################
# This is the base Docker file #
# It includes the following containers: #
# - Flask #
# - MySQL #
#########################################
services:
flask:
container_name: cradle_flask
build:
context: ./server
volumes:
- flask_uploads:/uploads
environment:
PORT: 5000
DB_HOSTNAME: cradle_mysql
DB_PORT: 3306
DB_NAME: cradle
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
LIMITER_DISABLED: ${LIMITER_DISABLED:-False}
EMULATOR_PHONE_NUMBER: ${EMULATOR_PHONE_NUMBER:-+1-123-456-7890}
SMS_KEY_DURATION: ${SMS_KEY_DURATION:-40}
depends_on:
- mysql
mysql:
container_name: cradle_mysql
platform: linux/x86_64
image: mysql:5.7
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_DATABASE: cradle
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
volumes:
flask_uploads:
mysql_data: