Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a healthcheck to the db service in docker-compose.yml #452

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

andrew-farries
Copy link
Collaborator

Add a healthcheck for the db service so that scripts can wait for Postgres to be ready to accept connections, eg:

#! /bin/sh

docker compose up -d --wait
# ... other commands now that Postgres is ready

@andrew-farries andrew-farries marked this pull request as ready for review November 6, 2024 12:35
@andrew-farries andrew-farries changed the title Add a healthcheck to the db service id docker-compose.yml Add a healthcheck to the db service in docker-compose.yml Nov 6, 2024
@andrew-farries andrew-farries force-pushed the add-compose-healthcheck branch from a017fe1 to 852e37f Compare November 6, 2024 12:38
@andrew-farries andrew-farries merged commit 5a49929 into main Nov 7, 2024
27 checks passed
@andrew-farries andrew-farries deleted the add-compose-healthcheck branch November 7, 2024 07:12
kvch pushed a commit to kvch/pgroll that referenced this pull request Nov 11, 2024
…io#452)

Add a healthcheck for the `db` service so that scripts can wait for
Postgres to be ready to accept connections, eg:

```sh
#! /bin/sh

docker compose up -d --wait
# ... other commands now that Postgres is ready
```
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