Skip to content

Instantly share code, notes, and snippets.

@deangrant
Last active August 12, 2022 10:31
Show Gist options
  • Save deangrant/5243766d9e2ac9ca3e9c2dabf5c9ef3a to your computer and use it in GitHub Desktop.
Save deangrant/5243766d9e2ac9ca3e9c2dabf5c9ef3a to your computer and use it in GitHub Desktop.
Configure a check that’s run to determine whether or not a PostgreSQL containers for this service are healthy
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment