From ea8c4fb44a699a714a50147132fc150d0a748d2f Mon Sep 17 00:00:00 2001 From: Oliver Bertuch Date: Sun, 24 Sep 2023 11:51:20 +0200 Subject: [PATCH] Make initializers run to completion before starting other services --- docker-compose.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index aea9800..209a812 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,8 +16,12 @@ services: networks: - dataverse depends_on: - - postgres - - solr + postgres: + condition: service_started + solr: + condition: service_started + dv_initializer: + condition: service_completed_successfully volumes: - ${RUNNER_TEMP}/dv/data:/dv - ${CONFIG_DIR}:/secrets @@ -69,7 +73,8 @@ services: hostname: 'solr' image: solr:${SOLR_VERSION} depends_on: - - solr_initializer + solr_initializer: + condition: service_completed_successfully restart: on-failure ports: - '8983:8983'