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

Healthcheck services in 'docker-openpaas-setup' docker compose file #1541

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

HoussemNasri
Copy link
Member

@HoussemNasri HoussemNasri commented Feb 16, 2025

Closes #1537

I could not health check all services using the OpenPaas API /api/healthcheck/{services} as some images don't have CURL installed. As a workaround, I’ve implemented custom health checks for these services

@HoussemNasri HoussemNasri force-pushed the openpaas-docker-compose-healthcheck branch from eaf8c85 to 6201d6a Compare February 19, 2025 08:45
start_period: 40s
interval: 10s
timeout: 10s
retries: 10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can modify the depends_on logic for increased effectiveness.
eg:
old

    depends_on:
      elasticsearch

new:

    depends_on:
      elasticsearch:
        condition: service_healthy

@@ -1,4 +1,4 @@
version: "2"
version: "2.7"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it fine to upgrade to version: '3' ? (similar to other docker-compose sample files)

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.

Healthcheck OpenPaaS Test setup docker compose
3 participants