-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yml
111 lines (103 loc) · 2.41 KB
/
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
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
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:
- "3307: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
restart: on-failure
ports:
- "8080:80"
environment:
- PMA_ARBITRARY=1
- UPLOAD_LIMIT=400M
q_api:
build: server/q_api
ports:
- "5000:5000"
environment:
- ENVIRONMENT=production
depends_on:
mysql:
condition: service_healthy
env_file:
- ./.env
multilingual-toia-dm:
build: server/multilingual-dm
ports:
- ${DM_PORT}:${DM_PORT}
depends_on:
mysql:
condition: service_healthy
environment:
- ENVIRONMENT=production
- PYTHONUNBUFFERED=1
env_file:
- ./.env
express-api:
depends_on:
mysql:
condition: service_healthy
build:
context: ./
dockerfile: server/Dockerfile.prod
restart: on-failure
ports:
- ${EXPRESS_PORT}:${EXPRESS_PORT}
environment:
- ENVIRONMENT=production
container_name: express-api
env_file:
- ./.env
- ./server/.env
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=production
env_file:
- ./server/translation/.env
volumes:
mysql-vol: