From e86e9a79d9ff702eb612cf5b0b4600b4d0adf811 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 14 Aug 2024 17:25:31 +0200 Subject: [PATCH] made sure that the server has to wait before the osm initalisation is done (or in prod at least started) --- docker-compose.local.yml | 10 ++++++---- docker-compose.yml | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docker-compose.local.yml b/docker-compose.local.yml index 71734ed7d..8ab1c815f 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -8,11 +8,11 @@ services: TZ: Europe/Berlin NUXT_PUBLIC_MAPS_URL: https://nav.tum.de/maps NUXT_PUBLIC_CDN_URL: http://data:3002 - NUXT_PUBLIC_API_URL: http://api:3003 + NUXT_PUBLIC_API_URL: http://server:3003 depends_on: data: condition: service_healthy - api: + server: condition: service_healthy # cdn data: @@ -22,7 +22,7 @@ services: TZ: Europe/Berlin ports: - "3002:3002" - api: + server: restart: unless-stopped build: args: @@ -50,7 +50,9 @@ services: JWT_KEY: ${JWT_KEY} depends_on: meilisearch: - condition: service_started + condition: service_healthy + osm2pgsql-init: + condition: service_completed_successfully db: condition: service_healthy meilisearch: diff --git a/docker-compose.yml b/docker-compose.yml index ba9cba080..cbcad14eb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -150,6 +150,8 @@ services: depends_on: meilisearch: condition: service_healthy + osm2pgsql-init: + condition: service_started db: condition: service_healthy meilisearch: