From 6e45e5e18b652fa4ab7b51d5cfe1d6790f1e2cca Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sun, 14 Jul 2024 14:23:50 +0200 Subject: [PATCH] documented the osm loading in the docker-compose file --- docker-compose.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 94f253b56..50c005219 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -247,6 +247,51 @@ services: - "traefik.http.middlewares.navigatum-redirect-to-https.redirectregex.replacement=https://nav.tum.de/$${3}" - "traefik.http.middlewares.navigatum-redirect-to-https.redirectregex.permanent=true" - "traefik.http.services.navigatum-redirect-https.loadbalancer.server.port=80" + # see the readme, this is only required once + # osm2pgsql_create: + # image: iboates/osm2pgsql:latest + # command: + # - osm2pgsql + # - --create + # - --slim + # - --database + # - ${POSTGRES_DB} + # - --user + # - ${POSTGRES_USER} + # - --host + # - db + # - --port + # - '5432' + # - /data/data.pbf + # - --hstore + # - --hstore-add-index + # - --hstore-column + # - raw + # environment: + # - PGPASSWORD=${POSTGRES_PASSWORD} + # depends_on: + # db: + # condition: service_healthy + # volumes: + # - ./:/data:ro + # osm_replication_init: + # image: iboates/osm2pgsql:latest + # command: + # - replication + # - init + # - --database + # - ${POSTGRES_DB} + # - --username + # - ${POSTGRES_USER} + # - --host + # - db + # - --port + # - '5432' + # environment: + # - PGPASSWORD=${POSTGRES_PASSWORD} + # depends_on: + # osm2pgsql_create: + # condition: service_completed_successfully volumes: tileserver-src: