-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.31 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
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3'
services:
tile-server:
container_name: tile-server
image:
overv/openstreetmap-tile-server
volumes:
- osm-data:/data/database/
- osm-tiles:/data/tiles/
- ./run-postgresql.conf:/etc/postgresql/14/main/postgresql.custom.conf.tmpl
shm_size: "5g"
ports:
- "8080:80"
environment:
- THREADS=16
- ALLOW_CORS=enabled
- UPDATES=enabled
command: "run"
valhalla:
container_name: valhalla
image: valhalla/valhalla:run-latest
ports:
- "8002:8002"
volumes:
- valhalla-data:/data/valhalla
command: "valhalla_service /data/valhalla/valhalla.json 1"
nominatim:
container_name: nominatim
image: mediagis/nominatim:4.1
shm_size: "5g"
ports:
- "8010:8080"
volumes:
- nominatim-data:/var/lib/postgresql/14/main
- ./osm-pbf/region.osm.pbf:/nominatim/data/region.osm.pbf
environment:
- PBF_PATH=/nominatim/data/region.osm.pbf
# only import admin boundaries and places. cuts down the DB size by a LOT
- IMPORT_STYLE=full
demo:
container_name: maps-demo
build:
context: valhalla-app
ports:
- "8020:80"
volumes:
osm-data:
external: true
osm-tiles:
external: true
valhalla-data:
external: true
nominatim-data:
external: true