Skip to content

Wait for db when starting with docker-compose#23

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

Wait for db when starting with docker-compose#23
stefanwayon wants to merge 1 commit into
memorymapper: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 👆🏼

@mapto
Copy link
Copy Markdown

mapto commented May 4, 2026

Hello, I hadn't seen your pull request, but I've made a more elaborate one, see https://github.com/memorymapper/memorymap-toolkit/pull/26/changes#diff-e45e45baeda1c1e73482975a664062aa56f20c03dd9d64a827aba57775bed0d3R22.
Any feedback, possibly agreeing to consolidate the two, is much appreciated.

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.

2 participants