forked from headwaymaps/headway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
184 lines (184 loc) · 5.29 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
version: "3"
services:
mbtileserver_init:
image: ghcr.io/headwaymaps/tileserver-init:latest
env_file: .env
environment:
MBTILES_ARTIFACT_DEST_PATH: /data/${HEADWAY_AREA}.mbtiles
MBTILES_ARTIFACT_SOURCE_PATH: /bootstrap/${HEADWAY_AREA}.mbtiles
NATURAL_EARTH_ARTIFACT_DEST_PATH: /data/natural_earth.mbtiles
NATURAL_EARTH_ARTIFACT_SOURCE_PATH: /bootstrap/natural_earth.mbtiles
volumes:
- "./data/:/bootstrap/:ro"
- "mbtileserver_data:/data/:rw"
mbtileserver:
image: ghcr.io/headwaymaps/tileserver:latest
restart: always
env_file: .env
environment:
PORT: 8000
volumes:
- "mbtileserver_data:/data/:ro"
depends_on:
mbtileserver_init:
condition: service_completed_successfully
ports:
- "9000:8000"
otp_init:
image: ghcr.io/headwaymaps/opentripplanner-init:latest
env_file: .env
environment:
ARTIFACT_DEST_PATH: /data/${HEADWAY_AREA}.graph.obj
ARTIFACT_SOURCE_PATH: /bootstrap/${HEADWAY_AREA}.graph.obj
volumes:
- "./data/:/bootstrap/:ro"
- "otp_data:/data/:rw"
otp:
image: ghcr.io/headwaymaps/opentripplanner:latest
restart: always
env_file: .env
volumes:
- "otp_data:/data/:ro"
depends_on:
otp_init:
condition: service_completed_successfully
valhalla_init:
image: ghcr.io/headwaymaps/valhalla-init:latest
env_file: .env
volumes:
- "valhalla_data:/data/:rw"
- "./data/:/bootstrap/:ro"
environment:
ARTIFACT_SOURCE_PATH: /bootstrap/${HEADWAY_AREA}.valhalla.tar
ARTIFACT_LOCK: /data/imported
ulimits:
nofile:
soft: 8192
hard: 8192
valhalla:
image: ghcr.io/headwaymaps/valhalla:latest
restart: always
env_file: .env
volumes:
- "valhalla_data:/data/:ro"
ulimits:
nofile:
soft: 8192
hard: 8192
depends_on:
valhalla_init:
condition: service_completed_successfully
nginx_init:
image: ghcr.io/headwaymaps/headway-init:latest
env_file: .env
environment:
FONT_ARTIFACT_SOURCE_PATH: /bootstrap/fonts.tar
FONT_ARTIFACT_DEST_PATH: /data/fonts/fonts.tar
SPRITE_ARTIFACT_SOURCE_PATH: /bootstrap/sprite.tar
SPRITE_ARTIFACT_DEST_PATH: /data/sprite/sprite.tar
volumes:
- "./data/:/bootstrap/:ro"
- "nginx_data:/data/:rw"
nginx:
image: ghcr.io/headwaymaps/headway:latest
restart: always
env_file: .env
environment:
HEADWAY_RESOLVER: 127.0.0.11
HEADWAY_FORCE_BBOX: ${HEADWAY_FORCE_BBOX}
HEADWAY_TILESERVER_URL: http://mbtileserver:8000
HEADWAY_PELIAS_URL: http://pelias_api:4000
HEADWAY_VALHALLA_URL: http://valhalla:8002
ports:
- "8080:8080"
volumes:
- "nginx_data:/data/:ro"
depends_on:
- "valhalla"
- "otp"
- "pelias_api"
- "mbtileserver"
pelias_config_init:
image: ghcr.io/headwaymaps/pelias-init:latest
env_file: .env
environment:
PELIAS_CONFIG_ARTIFACT_SOURCE_PATH: /bootstrap/${HEADWAY_AREA}.pelias.json
command: [ "/bin/bash", "/app/init_config.sh" ]
volumes:
- "./data/:/bootstrap/:ro"
- "pelias_config_data:/config"
pelias_elastic_init:
image: ghcr.io/headwaymaps/pelias-init:latest
env_file: .env
environment:
ELASTICSEARCH_ARTIFACT_SOURCE_PATH: /bootstrap/${HEADWAY_AREA}.elasticsearch.tar
command: [ "/bin/bash", "/app/init_elastic.sh" ]
volumes:
- "./data/:/bootstrap/:ro"
- "pelias_elasticsearch_data:/usr/share/elasticsearch/data"
peliasplaceholder_init:
image: ghcr.io/headwaymaps/pelias-init:latest
env_file: .env
environment:
PLACEHOLDER_ARTIFACT_SOURCE_PATH: /bootstrap/${HEADWAY_AREA}.placeholder.tar
command: [ "/bin/bash", "/app/init_placeholder.sh" ]
volumes:
- "./data/:/bootstrap/:ro"
- "pelias_placeholder_data:/data/placeholder"
peliaslibpostal:
image: pelias/libpostal-service
restart: always
pelias_api:
image: pelias/api:master
restart: always
environment:
PORT: 4000
PELIAS_CONFIG: /config/pelias.json
volumes:
- "pelias_config_data:/config:ro"
depends_on:
peliaselasticsearch:
condition: service_healthy
pelias_config_init:
condition: service_completed_successfully
peliasplaceholder:
image: pelias/placeholder:master
restart: always
environment:
PORT: 4100
volumes:
- "pelias_config_data:/config:ro"
- "pelias_placeholder_data:/data/placeholder"
depends_on:
pelias_config_init:
condition: service_completed_successfully
peliasplaceholder_init:
condition: service_completed_successfully
peliaselasticsearch:
image: pelias/elasticsearch:7.16.1
restart: always
volumes:
- "pelias_elasticsearch_data:/usr/share/elasticsearch/data"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add: [ "IPC_LOCK" ]
depends_on:
pelias_elastic_init:
condition: service_completed_successfully
pelias_config_init:
condition: service_completed_successfully
healthcheck:
test: nc -z localhost 9200
volumes:
pelias_config_data:
pelias_placeholder_data:
pelias_elasticsearch_data:
mbtileserver_data:
otp_data:
valhalla_data:
nginx_data: