Skip to content

Add health check for Docker container#179

Merged
orangecoding merged 1 commit intoorangecoding:masterfrom
CommanderTvis:commandertvis/hc
Sep 20, 2025
Merged

Add health check for Docker container#179
orangecoding merged 1 commit intoorangecoding:masterfrom
CommanderTvis:commandertvis/hc

Conversation

@CommanderTvis
Copy link
Contributor

  • Introduced HealthCheck in docker-compose.yml to monitor container status.
  • Added a test step to validate container's health using Docker Compose in the GitHub workflow.
  • Updated Dockerfile to include curl for health check commands.

- Introduced `HealthCheck` in `docker-compose.yml` to monitor container status.
- Added a test step to validate container's health using Docker Compose in the GitHub workflow.
- Updated `Dockerfile` to include `curl` for health check commands.
@CommanderTvis
Copy link
Contributor Author

CommanderTvis commented Sep 18, 2025

image

Worked on my master branch (https://github.com/CommanderTvis/fredy/actions/runs/17834389423)

@CommanderTvis
Copy link
Contributor Author

CommanderTvis commented Sep 18, 2025

The suggested workflow more or less protects the repository from deploying a non-functional Docker container, which can help to prevent errors like #178 in future.

@orangecoding
Copy link
Owner

I'll check it out soon. Thx

@orangecoding orangecoding merged commit 0ca9c5a into orangecoding:master Sep 20, 2025
2 checks passed
@CommanderTvis CommanderTvis deleted the commandertvis/hc branch September 21, 2025 12:28
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