forked from chesty/maps-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-full.yml
250 lines (237 loc) · 5.47 KB
/
docker-compose-full.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
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
version: '3.7'
services:
postgres:
image: hammermc/nominatim-docker
restart: always
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
env_file:
- osm.env
volumes:
- postgres-data:/var/lib/postgresql/data
- ./postgres/postgresql.conf:/etc/postgresql/postgresql.conf
- ./osm-config.sh:/usr/local/etc/osm-config.sh
- run:/run
tmpfs:
- /tmp
renderd-initdb:
image: hammermc/renderd-docker
restart: on-failure
depends_on:
- postgres
env_file:
- osm.env
environment:
- REDOWNLOAD
- REINITDB
- http_proxy
- https_proxy
command: renderd-initdb
volumes:
- data:/data
- ./osm-config.sh:/usr/local/etc/osm-config.sh
tmpfs:
- /run
- /tmp
renderd-updatedb:
image: hammermc/renderd-docker
restart: unless-stopped
depends_on:
- postgres
env_file:
- osm.env
environment:
- REDOWNLOAD
- REINITDB
- http_proxy
- https_proxy
command: renderd-updatedb
volumes:
- data:/data
- ./osm-config.sh:/usr/local/etc/osm-config.sh
tmpfs:
- /run
- /tmp
renderd:
image: hammermc/renderd-docker
restart: always
depends_on:
- postgres
- renderd-initdb
- renderd-updatedb
env_file:
- osm.env
environment:
- http_proxy
- https_proxy
command: renderd
volumes:
- data:/data
- ./renderd/renderd.conf:/etc/renderd.conf
- ./osm-config.sh:/usr/local/etc/osm-config.sh
tmpfs:
- /run
- /tmp
renderd-apache:
image: hammermc/renderd-docker
restart: always
depends_on:
- renderd
env_file:
- osm.env
environment:
- http_proxy
- https_proxy
command: renderd-apache2
volumes:
- data:/data
- ./renderd/renderd.conf:/etc/renderd.conf
- ./renderd-apache/tileserver_site.conf:/etc/apache2/sites-available/tileserver_site.conf
- ./osm-config.sh:/usr/local/etc/osm-config.sh
tmpfs:
- /run
- /tmp
ports:
- 8082:80
osrm-backend:
image: hammermc/vroom-docker
restart: always
# to run osrm-routed with different options to the default, use (eg)
# command: osrm-routed.sh su-exec osrm osrm-routed -t "$NPROCS" --algorithm mld /data/profile/"$PROFILE_DIR"/"$OSM_OSRM"
depends_on:
- postgres
- renderd
env_file:
- osm.env
environment:
- http_proxy
- https_proxy
- NPROCS
- PROFILE
- REDOWNLOAD
- REEXTRACT
command: osrm-routed.sh
volumes:
- data:/data
- ./osrm-backend/osrm-routed.sh:/usr/local/bin/osrm-routed.sh
- ./osrm-backend/opt/car.lua:/opt/car.lua
- ./osrm-backend/opt/lib:/opt/lib
- ./osm-config.sh:/usr/local/etc/osm-config.sh
tmpfs:
- /run
- /tmp
ports:
- 5000:5000
osrm-frontend:
image: osrm/osrm-frontend
restart: always
depends_on:
- osrm-backend
env_file:
- osm.env
environment:
- http_proxy
- https_proxy
command: osrm-frontend.sh
volumes:
- data:/data
- ./osrm-frontend/osrm-frontend.sh:/usr/local/bin/osrm-frontend.sh
- ./osrm-frontend/leaflet_options.js:/src/src/leaflet_options.js
tmpfs:
- /run
- /tmp
ports:
- 5002:9966
vroom:
image: hammermc/vroom-docker
env_file:
- osm.env
environment:
- http_proxy
- https_proxy
restart: always
tmpfs:
- /run
- /tmp
ports:
- 3000:3000
nominatim-apache:
image: hammermc/nominatim-docker
restart: always
depends_on:
- nominatim-initdb
- nominatim-updatedb
- postgres
env_file:
- osm.env
environment:
- http_proxy
- https_proxy
command: nominatim-apache2
volumes:
- data:/data
- run:/run
- ./nominatim-apache/000-default.conf:/etc/apache2/sites-available/000-default.conf
- ./nominatim-apache/local.php:/Nominatim/build/settings/local.php
- ./osm-config.sh:/usr/local/etc/osm-config.sh
tmpfs:
- /tmp
ports:
- 5003:80
# nominatim shares the /run directory with the postgres container
# because it only connects to postgres via a socket during import
nominatim-initdb:
image: hammermc/nominatim-docker
restart: on-failure
depends_on:
- postgres
env_file:
- osm.env
environment:
- REDOWNLOAD
- REINITDB
- http_proxy
- https_proxy
command: nominatim-initdb
volumes:
- data:/data
- run:/run
- ./osm-config.sh:/usr/local/etc/osm-config.sh
- ./nominatim-apache/local.php:/Nominatim/build/settings/local.php
tmpfs:
- /tmp
# edit apache/local.php for correct update settings
nominatim-updatedb:
image: hammermc/nominatim-docker
restart: unless-stopped
depends_on:
- postgres
env_file:
- osm.env
command: nominatim-updatedb
volumes:
- data:/data
- run:/run
- ./osm-config.sh:/usr/local/etc/osm-config.sh
- ./nominatim-apache/local.php:/Nominatim/build/settings/local.php
tmpfs:
- /tmp
nginx:
image: nginx
restart: always
depends_on:
- osrm-frontend
- osrm-backend
- nominatim-apache
- vroom
command: nginx -g 'daemon off;'
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- 8000:80
tmpfs:
- /tmp
- /run
volumes:
data:
postgres-data:
run: