-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
165 lines (150 loc) · 4.79 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
version: '2.4'
services:
stride-db-init:
image: ghcr.io/hasadna/open-bus-stride-db/open-bus-stride-db:latest
restart: "on-failure"
environment:
SQLALCHEMY_URL: "postgresql://postgres:123456@stride-db"
PGPASSWORD: "123456"
HOSTNAME: "stride-db"
USER: "postgres"
DB: "postgres"
DB_RESTORE_FROM_URL: "${DB_RESTORE_FROM_URL}"
depends_on:
- stride-db
stride-db:
image: postgres:13
restart: unless-stopped
ports:
- "5432:5432"
mem_reservation: 2g
mem_limit: 8g
environment:
POSTGRES_PASSWORD: "123456"
volumes:
- "stride-db:/var/lib/postgresql/data"
stride-etl:
image: ghcr.io/hasadna/open-bus-stride-etl/open-bus-stride-etl:latest
restart: "no"
environment:
SQLALCHEMY_URL: "postgresql://postgres:123456@stride-db"
depends_on:
- stride-db
gtfs-etl:
image: ghcr.io/hasadna/open-bus-gtfs-etl/open-bus-gtfs-etl:latest
restart: "no"
environment:
SQLALCHEMY_URL: "postgresql://postgres:123456@stride-db"
GTFS_ETL_ROOT_ARCHIVES_FOLDER: "/var/gtfs-storage"
depends_on:
- stride-db
volumes:
- "gtfs-storage:/var/gtfs-storage"
siri-requester:
image: ghcr.io/hasadna/open-bus-siri-requester/open-bus-siri-requester:latest
restart: unless-stopped
environment:
OPEN_BUS_SIRI_STORAGE_ROOTPATH: "/var/siri-storage"
OPEN_BUS_MOT_KEY: "${OPEN_BUS_MOT_KEY}"
OPEN_BUS_SSH_TUNNEL_PRIVATE_KEY_FILE: "/var/siri-requester-key/open-bus-ssh-tunnel-private-key-file"
OPEN_BUS_SSH_TUNNEL_SERVER_IP: "${OPEN_BUS_SSH_TUNNEL_SERVER_IP}"
OPEN_BUS_S3_ENDPOINT_URL: "${OPEN_BUS_S3_ENDPOINT_URL}"
OPEN_BUS_S3_ACCESS_KEY_ID: "${OPEN_BUS_S3_ACCESS_KEY_ID}"
OPEN_BUS_S3_SECRET_ACCESS_KEY: "${OPEN_BUS_S3_SECRET_ACCESS_KEY}"
OPEN_BUS_S3_BUCKET: "${OPEN_BUS_S3_BUCKET}"
volumes:
- "siri-storage:/var/siri-storage"
- ".data/siri-requester-key:/var/siri-requester-key"
siri-requester-health:
image: ghcr.io/hasadna/open-bus-siri-requester/open-bus-siri-requester:latest
restart: unless-stopped
entrypoint: [open-bus-siri-requester, health-daemon-start]
environment:
OPEN_BUS_SIRI_STORAGE_ROOTPATH: "/var/siri-storage"
volumes:
- "siri-storage:/var/siri-storage"
siri-requester-nginx:
image: ghcr.io/hasadna/open-bus-siri-requester/open-bus-siri-requester-nginx:latest
restart: unless-stopped
ports:
- "8081:80"
environment:
SIRI_REQUESTER_HEALTH_URL: http://siri-requester-health:8081
volumes:
- "siri-storage:/srv"
depends_on:
- siri-requester-health
siri-etl-process-new-snapshots:
image: ghcr.io/hasadna/open-bus-siri-etl/open-bus-siri-etl:latest
restart: unless-stopped
command: [start-process-new-snapshots-daemon]
environment:
OPEN_BUS_SIRI_STORAGE_ROOTPATH: "/var/siri-storage"
SQLALCHEMY_URL: "postgresql://postgres:123456@stride-db"
DEBUG: "yes"
volumes:
- "siri-storage:/var/siri-storage"
depends_on:
- stride-db
stride-api:
image: ghcr.io/hasadna/open-bus-stride-api/open-bus-stride-api:latest
restart: unless-stopped
ports:
- "8000:80"
environment:
SQLALCHEMY_URL: "postgresql://postgres:123456@stride-db"
depends_on:
- stride-db
airflow-db:
image: postgres:13
restart: unless-stopped
environment:
POSTGRES_PASSWORD: "123456"
volumes:
- "airflow-db:/var/lib/postgresql/data"
ports:
- "5433:5432"
airflow-webserver:
image: ghcr.io/hasadna/open-bus-pipelines/open-bus-pipelines:latest
restart: unless-stopped
build: .
environment:
OPEN_BUS_PIPELINES_AIRFLOW_INITIALIZE: "yes"
OPEN_BUS_PIPELINES_AIRFLOW_ROLE: "webserver"
OPEN_BUS_PIPELINES_AIRFLOW_ADMIN_PASSWORD: "123456"
ports:
- "8080:8080"
volumes:
- "airflow-home:/var/airflow"
depends_on:
- airflow-db
- redis
airflow-scheduler:
image: ghcr.io/hasadna/open-bus-pipelines/open-bus-pipelines:latest
restart: unless-stopped
build: .
environment:
OPEN_BUS_PIPELINES_DOWNLOAD_SIRI_SNAPSHOTS: "yes"
OPEN_BUS_PIPELINES_AIRFLOW_ROLE: "scheduler"
OPEN_BUS_SIRI_STORAGE_ROOTPATH: "/var/siri-storage"
SQLALCHEMY_URL: "postgresql://postgres:123456@stride-db"
DEBUG: "yes"
GTFS_ETL_ROOT_ARCHIVES_FOLDER: "/var/gtfs-storage"
volumes:
- "airflow-home:/var/airflow"
- "siri-storage:/var/siri-storage"
- ".:/srv"
- "gtfs-storage:/var/gtfs-storage"
depends_on:
- airflow-webserver
- stride-db
redis:
# Pulled Sep. 11, 2023
image: redis:6@sha256:43fa7d538f0dbe2151ff38d4b69b7dbea6f80223cfd85d10f7a9f8cb6447872e
restart: unless-stopped
volumes:
stride-db:
siri-storage:
gtfs-storage:
airflow-db:
airflow-home: