-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dockerfile): Adjust the docker setup
Without any configuration the container uses an example yml config shipped with it. Graph locations are parsed from envs, json and yml files
- Loading branch information
1 parent
84099e4
commit 3a68457
Showing
3 changed files
with
124 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
version: '2.4' | ||
services: | ||
ors-app: | ||
# Activate the following lines to build the container from the repository | ||
#build: | ||
# context: ./ | ||
container_name: ors-app | ||
ports: | ||
- "8080:8080" | ||
- "8080:8082" | ||
- "9001:9001" | ||
image: openrouteservice/openrouteservice:nightly | ||
# For versioned images see https://giscience.github.io/openrouteservice/installation/Running-with-Docker.html | ||
image: local/openrouteservice:test-compose | ||
user: "${UID:-0}:${GID:-0}" | ||
# build: | ||
# context: ./ | ||
# args: | ||
# OSM_FILE: ./ors-api/src/test/files/heidelberg.osm.gz | ||
volumes: | ||
- ./docker/graphs:/home/ors/ors-core/data/graphs | ||
- ./docker/elevation_cache:/home/ors/ors-core/data/elevation_cache | ||
- ./docker/logs/ors:/home/ors/logs | ||
- ./docker/logs/tomcat:/home/ors/tomcat/logs | ||
- ./docker/conf:/home/ors/ors-conf | ||
- ./docker/data:/home/ors/ors-core/data | ||
- ./graphs:/home/ors/graphs | ||
- ./elevation_cache:/home/ors/elevation_cache | ||
- ./config:/home/ors/config | ||
- ./logs:/home/ors/logs | ||
- ./files:/home/ors/files | ||
# Activate the following lines to use the environment file from the repo root for configuration | ||
#env_file: | ||
# - ors-config.env | ||
environment: | ||
- BUILD_GRAPHS=False # Forces the container to rebuild the graphs, e.g. when PBF is changed | ||
- "JAVA_OPTS=-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g" | ||
- "CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.rmi.port=9001 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost" | ||
- ORS_CONFIG=/home/ors/ors-conf/ors-config.json | ||
#ORS_CONFIG_LOCATION: /home/ors/config/example-ors-config.yml | ||
BUILD_GRAPHS: True | ||
# The following environment variables are used to configure the container without an ors-config.yml file. | ||
# See the ors-config.env file for more options. | ||
# These variables override values set by any config file. | ||
#logging.level.org.heigit: INFO | ||
#ors.engine.source_file: /home/ors/files/example-heidelberg.osm.gz | ||
#ors.engine.profiles.car.enabled: true | ||
#ors.engine.profiles.hgv.enabled: false | ||
#ors.engine.profiles.walking.enabled: false | ||
#ors.engine.profiles.bike-regular.enabled: false | ||
#ors.engine.profiles.wheelchair.enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters