marcopeocchi / yt-dlp-web-ui

A terrible web ui for yt-dlp. Designed to be self-hosted.
Mozilla Public License 2.0
657 stars 67 forks source link

no more wget nor curl. How to have an healthcheck ? #147

Closed stanthewizzard closed 3 weeks ago

stanthewizzard commented 2 months ago

hello latest version is curl less.

is there a way to have an healthcheck ? thanks

marcopeocchi commented 2 months ago

hello @stanthewizzard,

healthcheck from the docker container to an external service or healthcheck of the container itself?

stanthewizzard commented 2 months ago

Container itself

clickbg commented 1 month ago

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!

stanthewizzard commented 1 month ago

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

marcopeocchi commented 1 month ago

Sorry for the late, I've added wget to the base container

stanthewizzard commented 1 month ago

Awesome