Skip to content

fix: correct docker compose healthcheck example#10

Open
Jansherameer wants to merge 1 commit intocoollabsio:mainfrom
Jansherameer:main
Open

fix: correct docker compose healthcheck example#10
Jansherameer wants to merge 1 commit intocoollabsio:mainfrom
Jansherameer:main

Conversation

@Jansherameer
Copy link

The Docker Compose example used curl for the healthcheck,
but curl is not present in the minimal base image.

Replaced with dependency-free TCP healthcheck.

Copilot AI review requested due to automatic review settings March 15, 2026 01:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Docker Compose example healthcheck in the README to avoid relying on curl, which isn’t available in the minimal runtime image, by switching to a TCP-based check.

Changes:

  • Replaced the Compose healthcheck command from an HTTP curl probe to a /dev/tcp-based port probe.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
test: ["CMD-SHELL", "echo > /dev/tcp/127.0.0.1/9000 && exit 0 || exit 1"]
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
test: ["CMD-SHELL", "echo > /dev/tcp/127.0.0.1/9000 && exit 0 || exit 1"]
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