From 73006cc7b1fe820722d05f92c666cb04f3b9b1c3 Mon Sep 17 00:00:00 2001 From: Francia Csaba Date: Thu, 30 May 2024 14:03:21 +0200 Subject: [PATCH] Main compose.yaml file --- README.md | 0 compose.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 README.md create mode 100644 compose.yaml diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..ae6bec2 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,40 @@ +services: + amarillo: + build: + context: . + args: + PLUGINS: ${AMARILLO_PLUGINS-amarillo-metrics amarillo-gtfs-exporter } + environment: + # Configure these for external enhancer and/or generator + - ENHANCER_URL=${AMARILLO_ENHANCER_URL:-http://enhancer:80} + - GENERATOR_URL=${AMARILLO_GENERATOR_URL:-http://generator:80} + + - ADMIN_TOKEN=${ADMIN_TOKEN?} + - RIDE2GO_TOKEN=${RIDE2GO_TOKEN-} + - GRAPHHOPPER_BASE_URL='https://api.mfdz.de/gh' + # - SECRET_KEY + # - METRICS_USER + # - METRICS_PASSWORD + + # - MAX_WORKERS=1 + volumes: + - ./data:/app/data + ports: + # - "8000:80" + - "${PORT:-8000}:80" + enhancer: + image: "amarillo-enhancer" + volumes: + - ./data:/app/data + profiles: + - enhancer + generator: + image: "amarillo-gtfs-generator" + volumes: + - ./data:/app/data + profiles: + - generator + + +#sudo docker compose --profile enhancer up +#sudo docker compose --profile enhancer --profile generator up \ No newline at end of file