Closed stanthewizzard closed 3 weeks ago
hello @stanthewizzard,
healthcheck from the docker container to an external service or healthcheck of the container itself?
Container itself
I just hit that one too, my fix was to build the container locally with netcat in it:
FROM marcobaobao/yt-dlp-webui
RUN apk add --no-cache netcat-openbsd
And run it like this from compose:
yt-dlp:
build:
context: /root/admin/docker/build
dockerfile: yt-dlp.docker
---- the rest of your settings
My HC is:
healthcheck:
test: /usr/bin/nc -z 127.0.0.1 3033 || exit 1
interval: 10s
retries: 5
start_period: 5s
timeout: 10s
Hope this help!
Thanks but I'd like to stay with the container. In compose my command is ignored (sh to install curl) I have to run it manually
Sorry for the late, I've added wget to the base container
Awesome
hello latest version is curl less.
is there a way to have an healthcheck ? thanks