forked from pascalaigner/brawl-stars-club-league
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (50 loc) · 1.24 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
52
53
54
version: '3'
services:
postgres_db:
image: postgres:11.1
env_file:
- .db-secrets
expose:
- "5432"
volumes:
- ./postgres:/docker-entrypoint-initdb.d
- ./sql_scripts/create_club_league_games_table.sql:/docker-entrypoint-initdb.d/create_club_league_games_table.sql
- ./sql_scripts/create_job_log_table.sql:/docker-entrypoint-initdb.d/create_job_log_table.sql
- ./sql_scripts/create_club_members_table.sql:/docker-entrypoint-initdb.d/create_club_members_table.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U root -d brawlstars"]
interval: 5s
timeout: 5s
retries: 5
scheduler_members:
build:
context: .
dockerfile: Dockerfile
depends_on:
- postgres_db
command:
python -u scheduled_jobs/get_club_members.py
env_file:
- .env
scheduler_games:
build:
context: .
dockerfile: Dockerfile
depends_on:
- scheduler_members
command:
python -u scheduled_jobs/get_club_league_games.py
env_file:
- .env
python_app:
build:
context: .
dockerfile: Dockerfile
depends_on:
- scheduler_games
command:
python -u app.py
ports:
- 8050:8050
env_file:
- .env