From e0e923822c9b8d0733338bf741c2763144119d14 Mon Sep 17 00:00:00 2001 From: Jordy <65036298+JordyEGNL@users.noreply.github.com> Date: Mon, 20 May 2024 09:17:17 +0200 Subject: [PATCH] Add docker compose example (#144) * Add docker compose example * compose: healthcheck and restart policy * Update README.md --- README.md | 15 +++++++++++++++ docker-compose.yml | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index ff5f405..11b2cc3 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ To enable it just go to the settings page and enable the **Enable video/audio fo - As before server address is not specified or simply yt-dlp process takes a lot of time to fire up. (Forking yt-dlp isn't fast especially if you have a lower-end/low-power NAS/server/desktop where the server is running) ## [Docker](https://github.com/marcopeocchi/yt-dlp-web-ui/pkgs/container/yt-dlp-web-ui) installation +## Docker run ```sh docker pull marcobaobao/yt-dlp-webui docker run -d -p 3033:3033 -v :/downloads marcobaobao/yt-dlp-webui @@ -135,6 +136,20 @@ docker run -d \ --qs 2 ``` +### Docker Compose +```yaml +services: + yt-dlp-webui: + image: marcobaobao/yt-dlp-webui + ports: + - 3033:3033 + volumes: + - :/downloads # replace with a directory on your host system + healthcheck: + test: curl -f http://localhost:3033 || exit 1 + restart: unless-stopped +``` + ## [Prebuilt binaries](https://github.com/marcopeocchi/yt-dlp-web-ui/releases) installation ```sh diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9f93d02 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +services: + yt-dlp-webui: + image: marcobaobao/yt-dlp-webui + ports: + - 3033:3033 + volumes: + - :/downloads # replace with a directory on your host system + healthcheck: + test: curl -f http://localhost:3033 || exit 1 + restart: unless-stopped