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

Fetch healthcheck configuration via container label #44

Open
josegonzalez opened this issue May 13, 2023 · 0 comments
Open

Fetch healthcheck configuration via container label #44

josegonzalez opened this issue May 13, 2023 · 0 comments

Comments

@josegonzalez
Copy link
Member

Description of feature

We should be able to fetch healthcheck config from docker labels in addition to a config.

To use labels, the flag --label-config must be passed (otherwise we default to using app.json).

Each label can have a configurable label prefix, default of healthchecks.dokku.com/. As we can have 1 or more healthchecks, each healthcheck is numbered, 0-indexed, with keys being the same as in the json file.

Example:

healthchecks.dokku.com/0.attempts: 1
healthchecks.dokku.com/0.command: ["command", "here"]
healthchecks.dokku.com/1.command: ["command", "here"]

All label values should be json-encoded.

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