-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
137 lines (128 loc) · 2.93 KB
/
docker-compose-dev.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
version: "3"
services:
mysql:
build: server/mysql
command: --default-authentication-plugin=mysql_native_password --secure-file-priv=""
restart: on-failure
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
ports:
- "3306:3306"
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$DB_USERNAME --password=$$DB_PASSWORD
volumes:
- mysql-vol:/var/lib/mysql
phpMyAdmin:
depends_on:
- mysql
image: phpmyadmin:5.1.1-apache
restart: on-failure
ports:
- "8080:80"
environment:
- PMA_ARBITRARY=1
- UPLOAD_LIMIT=350M
q_api:
build: server/q_api
ports:
- "5000:5000"
environment:
- ENVIRONMENT=development
- PYTHONUNBUFFERED=1
volumes:
- ./server/q_api:/app
depends_on:
mysql:
condition: service_healthy
env_file:
- ./.env
multilingual-toia-dm:
build: server/multilingual-dm
ports:
- ${DM_PORT}:${DM_PORT}
volumes:
- ./server/multilingual-dm:/app
depends_on:
mysql:
condition: service_healthy
env_file:
- ./.env
environment:
- PYTHONUNBUFFERED=1
express-api:
# depends_on:
# mysql:
# condition: service_healthy
build:
context: ./
dockerfile: server/Dockerfile.dev
restart: on-failure
ports:
- ${EXPRESS_PORT}:${EXPRESS_PORT}
environment:
- PORT=3001
- ENVIRONMENT=development
container_name: express-api
volumes:
- ./server:/app/
- /app/node_modules
env_file:
- ./.env
- ./server/.env
react-ui:
depends_on:
- mysql
build: interface
ports:
- "3000:3000"
volumes:
- ./interface:/app
- /app/node_modules
env_file:
- ./.env
- ./interface/.env
environment:
- CHOKIDAR_USEPOLLING=true
metabase-sql-wrapper:
build:
context: ./metabase
dockerfile: ./Dockerfile
depends_on:
mysql:
condition: service_healthy
ports:
- "3002:3000"
volumes:
- ./metabase/data:/data
environment:
MB_DB_FILE: /data/metabase
MB_DB_INIT_SQL_FILE: /data/metabase.db.sql
MB_DB_SAVE_TO_SQL_FILE: /data/metabase.db.sql
rabbitmq3:
container_name: "rabbitmq"
image: rabbitmq:3.8-management-alpine
environment:
- RABBITMQ_DEFAULT_USER=${RMQ_USERNAME}
- RABBITMQ_DEFAULT_PASS=${RMQ_PASSWORD}
ports:
# AMQP protocol port
- '5672:5672'
# HTTP management UI
- '15672:15672'
translation:
depends_on:
- rabbitmq3
restart: on-failure
container_name: "translation_py"
build: server/translation
environment:
- GOOGLE_APPLICATION_CREDENTIALS=toia-translation.json
- ENVIRONMENT=DEVELOPMENT
- PYTHONUNBUFFERED=1
volumes:
- ./server/Transcripts:/app/files
env_file:
- ./server/translation/.env
volumes:
mysql-vol: