-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (50 loc) · 1.54 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
version: "3.7"
services:
mysql:
restart: unless-stopped
container_name: "handwriting_labeling_app_mysql"
image: "mysql:latest"
ports:
- "${MYSQL_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: handwriting_labeling_app
MYSQL_USER: handwriting_labeling_app_db_user
volumes:
- "./mysql:/var/lib/mysql"
backend:
restart: unless-stopped
container_name: "handwriting_labeling_app_backend"
build: ./handwriting-labeling-app-backend
environment:
MYSQL_HOST: mysql
MYSQL_PORT: 3306
MYSQL_DATABASE: handwriting_labeling_app
MYSQL_USERNAME: handwriting_labeling_app_db_user
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
APP_URL_ROOTS: ${FRONTEND_URLS}
volumes:
- "./config/batch_service_config.json:/usr/handwriting-labeling-app/src/main/resources/batch_service_config.json"
- "./samples:/usr/handwriting-labeling-app/src/main/resources/public/files/images/samples"
- "./examples:/usr/handwriting-labeling-app/src/main/resources/public/files/images/examples"
ports:
- "${BACKEND_PORT}:8080"
depends_on:
- mysql
frontend:
restart: unless-stopped
container_name: "handwriting_labeling_app_frontend"
build:
context: ./handwriting-labeling-app-frontend
args:
REACT_APP_BACKEND_URL_ROOT: ${BACKEND_URL}
ports:
- "${FRONTEND_PORT}:3000"
depends_on:
- backend
networks:
default:
driver: bridge
volumes:
mysql: