Skip to content

Commit

Permalink
Make initializers run to completion before starting other services
Browse files Browse the repository at this point in the history
  • Loading branch information
poikilotherm committed Sep 24, 2023
1 parent 3ffb1c5 commit ea8c4fb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit ea8c4fb

Please sign in to comment.