-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose-no-nominatim.yml
188 lines (178 loc) · 4 KB
/
docker-compose-no-nominatim.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
version: '3.7'
services:
postgres:
image: hammermc/nominatim-docker:13
restart: always
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
stop_grace_period: 2m
env_file:
- osm.env
volumes:
- data:/data
- 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-enabled/renderd.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-no-nominatim.js:/src/src/leaflet_options.js
- ./osrm-frontend/gelinger777-3683985.patch:/src/gelinger777-3683985.patch
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
nginx:
image: nginx
restart: always
depends_on:
- osrm-frontend
- osrm-backend
- vroom
command: nginx -g 'daemon off;'
volumes:
- ./nginx-no-nominatim/default.conf:/etc/nginx/conf.d/default.conf
ports:
- 8000:80
tmpfs:
- /tmp
- /run
volumes:
data:
postgres-data:
run: