CasaOS
CasaOS copied to clipboard
Manage container startup order and health checks via the UI
trafficstars
Hello everyone,
I would like to propose the addition of new options in the CasaOS configurator to manage the startup order of containers and perform health checks directly through the user interface.
Context: Currently, CasaOS only allows the configuration of environment variables, devices, container commands, cap-add, and volumes. It does not offer the ability to define container startup order or perform health checks to ensure that one container is fully operational before starting another.
Requested Features:
- Health Checks: Add the ability to configure a health check (e.g.,
curl --fail http://localhost:8123/ || exit 1) to ensure that a container is in a "healthy" state before starting the others. - Dependencies (Depends_On): Introduce a functionality similar to Docker Compose's
depends_ondirective, which allows defining dependencies between containers, ensuring that a container only starts if the one it depends on has been started successfully.
Benefits:
- Improved coordination and stability during container restarts.
- Reduced errors caused by uncontrolled parallel container startups.
- Greater flexibility for complex environments where the startup order is critical.
I hope this proposal can be considered, as it would significantly improve container management in CasaOS.
Thank you for your attention and for your continuous work!
Best regards,
ciux