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 healthcheck to postgres #72745

Closed
olivierdalang opened this issue Sep 26, 2024 · 3 comments
Closed

add healthcheck to postgres #72745

olivierdalang opened this issue Sep 26, 2024 · 3 comments
Assignees
Labels
feature-request postgresql solved stale 15 days without activity triage Triage is needed

Comments

@olivierdalang
Copy link

olivierdalang commented Sep 26, 2024

Name and Version

bitnami/postgresql:15 (and of course other versions too)

What is the problem this feature will solve?

Making sure the postgres container is properly started before other services relying on it start by making it possible to use the depends_on/condition/service_healthy directive in docker-compose

What is the feature you are proposing to solve the problem?

Adding HEALTHCHECK directives in the dockerfile with some reasonable defaults.
Here I use something like this (docker-compose):

services:
  ...
  postgres:
    image: bitnami/postgresql:15
    ...
    healthcheck:
      test: pg_isready -U postgres
      interval: 5s
      retries: 6
      start_period: 1s

What alternatives have you considered?

Adding them manually in my docker-compose / kubernetes configs - of course doable

@carrodher
Copy link
Member

Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.

Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Oct 17, 2024
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request postgresql solved stale 15 days without activity triage Triage is needed
Projects
None yet
Development

No branches or pull requests

3 participants