Skip to content

Wait for db when starting with docker-compose#23

Open
stefanwayon wants to merge 1 commit intomemorymapper:masterfrom
stefanwayon:compose-wait-for-db
Open

Wait for db when starting with docker-compose#23
stefanwayon wants to merge 1 commit intomemorymapper:masterfrom
stefanwayon:compose-wait-for-db

Conversation

@stefanwayon
Copy link
Copy Markdown

@stefanwayon stefanwayon commented Oct 22, 2024

Add pg_isready as a healthcheck on the db service, and conditioned the start of the memorymaptoolkit service on the db service being healthy. This prevents the mapping service starting before the database is ready to receive connections. This should work with docker-compose 2.1+.

Add `pg_isready` as a healthcheck on the `db` service, and conditioned the start of the `memorymaptoolkit` service on the `db` service being healthy. This prevents the mapping service starting before the database is ready to receive connections.
@stefanwayon
Copy link
Copy Markdown
Author

@ddunc23 👆🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant