mirror of
https://github.com/matze/wastebin.git
synced 2026-04-25 16:45:59 +03:00
[GH-ISSUE #82] Docker container healthcheck #52
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ilgigante77 on GitHub (Nov 28, 2024).
Original GitHub issue: https://github.com/matze/wastebin/issues/82
Is there a way to get a docker healthckeck via some internal command?
@matze commented on GitHub (Jan 14, 2025):
What exactly do you mean? If the service is still up and running? I'd say
GET /and you are golden.@ilgigante77 commented on GitHub (Jan 19, 2025):
this;
healthcheck:
test: "wget --no-verbose --tries=1 --spider http://127.0.0.1:xxxx || exit 1"
interval: 1m30s
timeout: 10s
retries: 3
start_period: 5s
or implementing this in Dockerfile:
HEALTHCHECK [OPTIONS] CMD
or implementing the /health endpoint...
its the container that checks itself internally, not an external call.
@matze commented on GitHub (Jan 20, 2025):
I am not convinced that supervision functionality (your example is definitely more than a check) should be part of the base image. If you need this, you can use a custom Docker image based on
wastebin:latestand add this. I personally use systemd for proper restarts and checks and don't want to be interfered by this.@ilgigante77 commented on GitHub (Jan 20, 2025):
Ok, but this is a standard behaviour of docker. I will create my own image
Il lun 20 gen 2025, 13:23 Matthias Vogelgesang @.***>
ha scritto:
@matze commented on GitHub (Jan 20, 2025):
Sorry, I don't follow. How is container technology related to how things are run inside the container? Do you have some reading material?