-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
47 lines (40 loc) · 1.06 KB
/
docker-compose.yaml
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
version: "3.9"
services:
database:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db_root_password
MYSQL_DATABASE: translation
MYSQL_USER_FILE: /run/secrets/db_user
MYSQL_PASSWORD_FILE: /run/secrets/db_password
secrets:
- db_root_password
- db_user
- db_password
volumes:
- ./mysql-dump:/docker-entrypoint-initdb.d
- unlimited_translation_database_volume:/var/lib/mysql
backend_fastapi:
image: datatrigger/unlimited-translation_backend_fastapi
frontend_flask:
image: datatrigger/unlimited-translation_frontend_flask:docker_swarm
depends_on:
- backend_fastapi
- database
ports:
- "5000:80"
environment:
FLASK_DB_USER_FILE: /run/secrets/db_user
FLASK_DB_PASSWORD_FILE: /run/secrets/db_password
secrets:
- db_user
- db_password
secrets:
db_root_password:
external: true
db_user:
external: true
db_password:
external: true
volumes:
unlimited_translation_database_volume: