forked from Overv/openstreetmap-tile-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
46 lines (43 loc) · 1.47 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
version: '3.6'
services:
map:
image: dbahrdt/openstreetmap-tile-server
volumes:
# Either use volumes which are also defined below or use host paths
- osm-tileserver-db:/var/lib/postgresql
- osm-tileserver-nodes:/nodes
- osm-tileserver-tiles:/var/lib/mod_tile
- osm-tileserver-logs:/var/log
# Sample host paths:
# - /data/osm/tileserver/db:/var/lib/postgresql
# - /data/osm/tileserver/nodes:/nodes
# - /data/osm/tileserver/tiles:/var/lib/mod_tile
# - /data/osm/tileserver/logs:/var/log
- ./cfg/postgresql.serve.conf.tmpl:/etc/postgresql/current/main/postgresql.custom.conf.tmpl
- ./scripts/render_list_geo.pl:/usr/bin/render_list_geo
environment:
- UPDATES=enabled
- UPDATE_THREADS=1
- RENDER_THREADS=2
- IMPORT_THREADS=2
# If you import with flat nodes then you also have to set the flat nodes option during updates
# However you may change the memory usage (-C)
- OSM2PGSQL_EXTRA_ARGS=-C 1024 --flat-nodes /nodes/flat_nodes.bin
- ALLOW_CORS=enabled
ports:
- "3080:80"
restart: "on-failure"
shm_size: 1G
command: "run"
configs:
postgres-import-cfg:
file: ./cfg/postgresql.import.conf.tmpl
postgres-prerender-cfg:
file: ./cfg/postgresql.prerender.conf.tmpl
postgres-serve-cfg:
file: ./cfg/postgresql.prerender.conf.tmpl
volumes:
osm-tileserver-db: {}
osm-tileserver-nodes: {}
osm-tileserver-tiles: {}
osm-tileserver-logs: {}