This commit is contained in:
31
docker-compose.yml
Normal file
31
docker-compose.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
services:
|
||||
freemoto-web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: freemoto-web
|
||||
ports:
|
||||
- "8080:8080"
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
# Defaults are handled in the app, but you can override here if needed
|
||||
# - PORT=8080
|
||||
# - NOMINATIM_URL=https://nominatim.openstreetmap.org
|
||||
# - NOMINATIM_USER_AGENT=FreeMoto/1.0 (+https://fm.ztsw.de/)
|
||||
# - LOG_LEVEL=info
|
||||
- VALHALLA_URL=http://valhalla:8002/route
|
||||
depends_on:
|
||||
- valhalla
|
||||
|
||||
valhalla:
|
||||
image: ghcr.io/valhalla/valhalla-scripted:latest
|
||||
container_name: valhalla
|
||||
tty: true
|
||||
ports:
|
||||
- "8002:8002"
|
||||
volumes:
|
||||
# Mount a host directory for custom files and tile caching if desired
|
||||
- ${PWD}/custom_files:/custom_files
|
||||
environment:
|
||||
- tile_urls=https://download.geofabrik.de/europe/germany-latest.osm.pbf
|
||||
Reference in New Issue
Block a user