forked from nilsnolde/docker-valhalla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.template
37 lines (37 loc) · 1.93 KB
/
docker-compose.yml.template
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
version: '3.0'
services:
valhalla:
image: ghcr.io/gis-ops/docker-valhalla/valhalla:latest
container_name: valhalla_latest
ports:
- 8002:8002
#build:
# context: .
# args:
# - VALHALLA_UID=1000
# - VALHALLA_GID=1000
volumes:
- ./custom_files/:/custom_files
# - ./gtfs_feeds:/gtfs_feeds # only enable with build_transit=True
environment:
# Auto-download PBFs from Geofabrik
# - tile_urls=https://download.geofabrik.de/europe/andorra-latest.osm.pbf https://download.geofabrik.de/europe/albania-latest.osm.pbf
- server_threads=2 # determines how many threads will be used to run the valhalla server
- serve_tiles=True # If True, starts the service. If false, stops after building the graph.
- use_tiles_ignore_pbf=True # load existing valhalla_tiles.tar directly
- tileset_name=valhalla_tiles # name of the resulting graph on disk
- build_elevation=False # build elevation with "True" or "Force": will download only the elevation for areas covered by the graph tiles
- build_admins=False # build admins db with "True" or "Force"
- build_time_zones=False # build timezone db with "True" or "Force"
- build_transit=False # build transit, needs existing GTFS directories mapped to /gtfs_feeds
- build_tar=True # build an indexed tar file from the tile_dir for faster graph loading times
- force_rebuild=False # forces a rebuild of the routing tiles with "True"
- update_existing_config=True # if there are new config entries in the default config, add them to the existing config
# - path_extension=graphs # this path will be internally appended to /custom_files; no leading or trailing path separator!
# adapt to the expected build time
# healthcheck:
# test: curl --fail -s http://localhost:8002/status || exit 1
# interval: 1s
# retries: 10
# start_period: 2s
# timeout: 1s