r/voidlinux • u/ar-jan • Jun 09 '26
Podman, docker-compose, and healthchecks
Anyone have a decent way to get podman healthchecks functioning correctly?
The podman-compose wrapper script does not accept condition: service_healthy syntax in compose.yaml, so I'm using podman compose command with docker-compose as provider. This works in principle, but podman healthchecks depend on systemd, so now I manually need to run podman healthcheck run containername to get the compose setup to proceed and serve the app. Also I want to avoid writing health check scripts in the container images.
7
Upvotes
1
u/ar-jan Jun 15 '26
If you'll excuse me, I needed a solution for this so I vibe-coded something with gpt-5.5. It works for me. https://github.com/ar-jan/podman-healthcheckd
1
u/ar-jan Jun 15 '26
Digging a bit deeper:
But, it also says something scary: