-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
77 lines (71 loc) · 2 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3'
services:
rail_pm_rds:
container_name: ${RPM_DB_HOST}
image: postgres:14.4
env_file: .env
shm_size: '2gb'
environment:
POSTGRES_DB: ${RPM_DB_NAME}
POSTGRES_PASSWORD: ${RPM_DB_PASSWORD}
ports:
- "${RPM_DB_PORT}:5432"
command: ["postgres", "-c", "log_statement=all"]
metadata_rds:
container_name: ${MD_DB_HOST}
image: postgres:15
env_file: .env
shm_size: '2gb'
environment:
POSTGRES_DB: ${MD_DB_NAME}
POSTGRES_PASSWORD: ${MD_DB_PASSWORD}
ports:
- "${MD_DB_PORT}:5432"
command: ["postgres", "-c", "log_statement=all"]
performance_manager:
container_name: performance_manager
env_file: .env
build: .
depends_on:
- rail_pm_rds
- metadata_rds
working_dir: /lamp
volumes:
- ~/.aws:/root/.aws:ro # map credentials to be used by boto3, read-only
command: ["poetry", "run", "performance_manager"]
bus_performance_manager:
container_name: bus_performance_manager
env_file: .env
build: .
depends_on:
- metadata_rds
working_dir: /lamp
volumes:
- ~/.aws:/root/.aws:ro # map credentials to be used by boto3, read-only
command: ["poetry", "run", "bus_performance_manager"]
seed_metadata:
container_name: seed_metadata
env_file: .env
build: .
depends_on:
- rail_pm_rds
- metadata_rds
working_dir: /lamp
volumes:
# map credentials to be used by boto3, read-only
- ~/.aws:/root/.aws:ro
# add in filepath json that will be the default seed file path
- ./tests/test_files/staging_dec_10.json:/seed_paths.json
# entrypoint passes in seed file thats added as a volume. if you want to use a different
# filepath run
# docker-compose run -v /path/to/files.json:/seed.json seed_metadata --seed-file /seed.json
entrypoint:
[
"poetry",
"run",
"seed_metadata",
"--clear-static",
"--clear-rt",
"--seed-file",
"/seed_paths.json"
]