-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
69 lines (66 loc) · 1.96 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
x-valhalla-run: &valhalla-run
image: opentimes:latest
user: ${USER_ID}:${GROUP_ID}
build:
context: .
dockerfile: data/Dockerfile
args:
- USER_ID=${USER_ID}
- GROUP_ID=${GROUP_ID}
environment:
- use_tiles_ignore_pbf=True
- update_existing_config=False
- force_rebuild=False
- tileset_name=tiles
- traffic_name=traffic
services:
# https://github.com/nilsnolde/docker-valhalla/blob/master/docker-compose.yml
valhalla-build:
image: opentimes:latest
container_name: valhalla-build
user: ${USER_ID}:${GROUP_ID}
build:
context: .
dockerfile: data/Dockerfile
args:
- USER_ID=59999
- GROUP_ID=59999
volumes:
- ./data/build/:/custom_files:rw
- ./data/valhalla.json:/custom_files/valhalla.json:rw
environment:
- serve_tiles=False
- tileset_name=tiles
# Optional so we can exclude Alaska (which requires 22GB of tiles)
- build_elevation=${BUILD_ELEVATION:-True}
- build_admins=True
- build_time_zones=True
- build_transit=False
- build_tar=True
- force_rebuild=True
- update_existing_config=False
- use_default_speeds_config=True
- traffic_name=traffic
valhalla-run-fp:
<<: *valhalla-run
container_name: valhalla-run-fp
ports:
- 8002:8002
volumes:
- ./data/build:/custom_files:rw
- ./data/output:/data/output:rw
- ./data/input:/data/input:ro
- ./data/intermediate:/data/intermediate:ro
# All volumes are identical for first/second pass except the config file
- ./data/valhalla.json:/custom_files/valhalla.json:ro
valhalla-run-sp:
<<: *valhalla-run
container_name: valhalla-run-sp
ports:
- 8003:8002
volumes:
- ./data/build:/custom_files:rw
- ./data/output:/data/output:rw
- ./data/input:/data/input:ro
- ./data/intermediate:/data/intermediate:ro
- ./data/valhalla_sp.json:/custom_files/valhalla.json:ro