ptah-sh / ptah-server

Self-hosted alternative to Heroku
https://ptah.sh
Other
85 stars 2 forks source link

Add support for specifying healthchecks via HealthConfig of ContainerSpec #51

Closed bohdan-shulha closed 2 days ago

bohdan-shulha commented 2 months ago

To improve reliability of the hosted services, Swarm needs to know whether the service is healthy or not.

https://docs.docker.com/engine/api/v1.46/#tag/Service/operation/ServiceCreate

Example usage here: https://github.com/dunglas/frankenphp/blob/main/Dockerfile#L27

bohdan-shulha commented 2 weeks ago

Should be implemented as an input after the release/run command.

Release/run commands and healthcheck have to be implemented as a secondary actions.

image