-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-staging.yml
85 lines (78 loc) · 1.93 KB
/
docker-compose-staging.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
version: "3"
x-logging: &logging
logging:
driver: loki
options:
loki-url: http://host.docker.internal:3100:3100/loki/api/v1/push
services:
mariadb_staging:
<<: *logging
container_name: mariadb_staging
build:
context: mariadb/.
restart: always
volumes:
- mysql-data_staging:/var/lib/mysql
env_file:
- custom/db_staging.env
networks:
- backend_staging
sql_migrations_staging:
<<: *logging
container_name: sql_migrations_staging
build:
context: sql_migrations/.
args:
STAGING: "true"
restart: on-failure:5
env_file:
- custom/bot_staging.env
networks:
- backend_staging
depends_on:
- mariadb_staging
python_discord_bot_staging:
<<: *logging
container_name: python_discord_bot_staging
build:
context: python_discord_bot/.
args:
STAGING: "true"
restart: always
env_file:
- custom/bot_staging.env
networks:
- backend_staging
- world
depends_on:
- mariadb_staging
- sql_migrations_staging
python_bot_frontend_staging:
<<: *logging
container_name: python_bot_frontend_staging
build:
context: python_flask/.
args:
STAGING: "true"
restart: always
env_file:
- custom/bot_staging.env
networks:
- backend_staging
labels:
- traefik.enable=true
- traefik.http.routers.python_bot_frontend_staging.rule=Host(`bot-staging.REPLACE_ME_DOMAIN`)
- traefik.http.routers.python_bot_frontend_staging.entrypoints=websecure
- traefik.http.routers.python_bot_frontend_staging.tls.certresolver=dockerssl
- traefik.http.services.python_bot_frontend_staging.loadbalancer.server.port=5001
depends_on:
- sql_migrations_staging
- mariadb_staging
volumes:
mysql-data_staging:
db_migrations_staging:
networks:
backend_staging:
external: true
world:
external: true