Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Healthcheck #1008

Open
modem7 opened this issue Mar 26, 2024 · 1 comment
Open

Docker Healthcheck #1008

modem7 opened this issue Mar 26, 2024 · 1 comment

Comments

@modem7
Copy link

modem7 commented Mar 26, 2024

Creating an healthcheck where Docker can check that the application is healthy and up (maybe utilising supervisorctl or wget) would be beneficial for auto restarts in case something goes wrong.

@modem7
Copy link
Author

modem7 commented Mar 26, 2024

An idea could be to have the healthcheck be:

["CMD-SHELL", "supervisorctl status || exit 1"] or similar

And add the following to supervisord.conf:

[unix_http_server]
file=/dev/shm/supervisor.sock
chmod=0700

[rpcinterface:supervisor]
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///dev/shm/supervisor.sock

Happy to raise a PR if the feature is wanted.

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

No branches or pull requests

1 participant