From 6ded36e994abdcc092e905211b66afa84ecd3090 Mon Sep 17 00:00:00 2001 From: Nick Yeoman Date: Fri, 17 Apr 2026 14:09:39 +0000 Subject: [PATCH] updated handbrake --- {handbrake_dev => handbrake}/README.md | 19 +++++++++-- handbrake/compose-cpu.yaml | 17 ++++++++++ .../compose-gpu.yaml | 10 +++--- {handbrake_dev => handbrake}/sample.env | 24 ++++++++------ handbrake_dev/portainer.yml | 33 ------------------- handbrake_dev/stack.env | 25 -------------- 6 files changed, 52 insertions(+), 76 deletions(-) rename {handbrake_dev => handbrake}/README.md (93%) create mode 100644 handbrake/compose-cpu.yaml rename handbrake_dev/docker-compose.yml => handbrake/compose-gpu.yaml (75%) rename {handbrake_dev => handbrake}/sample.env (53%) delete mode 100644 handbrake_dev/portainer.yml delete mode 100644 handbrake_dev/stack.env diff --git a/handbrake_dev/README.md b/handbrake/README.md similarity index 93% rename from handbrake_dev/README.md rename to handbrake/README.md index 4f7a297..be4ee2e 100644 --- a/handbrake_dev/README.md +++ b/handbrake/README.md @@ -1,7 +1,8 @@ # Handbrake -DockerHub: https://hub.docker.com/r/jlesage/handbrake -Env docs: https://github.com/jlesage/docker-handbrake +- DockerHub: https://hub.docker.com/r/jlesage/handbrake +- Env docs: https://github.com/jlesage/docker-handbrake +- Proxy port: 5800 ## NOTES @@ -144,4 +145,16 @@ I think this is the best preset for small file, big quality: "x264Option": "", "x264UseAdvancedOptions": false }, -``` \ No newline at end of file +``` + + +## Dockhand Stack, Deploy from Git + +Cookbooks Repository +stackname: handbrake +Compose file path: handbrake/compose-cpu.yaml +Additional env file (optional): handbrake/sample.env + +Then "Load" handbrake/sample.env into the Environmental variables in dockhand + +Create the Stack \ No newline at end of file diff --git a/handbrake/compose-cpu.yaml b/handbrake/compose-cpu.yaml new file mode 100644 index 0000000..27a95d7 --- /dev/null +++ b/handbrake/compose-cpu.yaml @@ -0,0 +1,17 @@ +# Handbrake CPU +services: + handbrake: + image: ${HANDBRAKE_IMAGE:-jlesage/handbrake:latest} + restart: ${HANDBRAKE_RESTART:-unless-stopped} + volumes: + - "${VOL_PATH:-./data}/handbrake/ghb-config:/config" + - "${VOL_PATH:-./data}/handbrake/storage:/storage" + - "${VOL_PATH:-./data}/handbrake/complete:/output" + - "${VOL_PATH:-./data}/handbrake/watch:/watch" + - "${VOL_PATH:-./data}/handbrake/watch2:/watch2" + - "${VOL_PATH:-./data}/handbrake/trash:/trash" + env_file: + - ${HANDBRADE_ENV:-sample.env} + ports: + - ${HANDBRAKE_PORT:-5800}:5800" + \ No newline at end of file diff --git a/handbrake_dev/docker-compose.yml b/handbrake/compose-gpu.yaml similarity index 75% rename from handbrake_dev/docker-compose.yml rename to handbrake/compose-gpu.yaml index aa4d985..a311936 100644 --- a/handbrake_dev/docker-compose.yml +++ b/handbrake/compose-gpu.yaml @@ -1,6 +1,8 @@ +# Handbrake CPU services: handbrake: image: ${HANDBRAKE_IMAGE:-jlesage/handbrake:latest} + restart: ${HANDBRAKE_RESTART:-unless-stopped} volumes: - "${VOL_PATH:-./data}/handbrake/ghb-config:/config" - "${VOL_PATH:-./data}/handbrake/storage:/storage" @@ -8,15 +10,13 @@ services: - "${VOL_PATH:-./data}/handbrake/watch:/watch" - "${VOL_PATH:-./data}/handbrake/watch2:/watch2" - "${VOL_PATH:-./data}/handbrake/trash:/trash" - restart: "unless-stopped" env_file: - - .env + - ${HANDBRADE_ENV:-sample.env} ports: - - "5800:5800" - # Below for GPU + - ${HANDBRAKE_PORT:-5800}:5800" runtime: nvidia deploy: resources: reservations: devices: - - capabilities: [gpu] + - capabilities: [gpu] \ No newline at end of file diff --git a/handbrake_dev/sample.env b/handbrake/sample.env similarity index 53% rename from handbrake_dev/sample.env rename to handbrake/sample.env index d357f72..1798f26 100644 --- a/handbrake_dev/sample.env +++ b/handbrake/sample.env @@ -1,10 +1,12 @@ -# Global -VOL_PATH=/docker/vol/handbrake-data #HELP: volpath -VOL_CONFIG_PATH=/docker/vol #HELP: configpath -COOKBOOK=/home/user/git/docker-compose-cookbooks #HELP: cookbooks +VOL_PATH=/data +HANDBRAKE_IMAGE=jlesage/handbrake:latest #CPU +#HANDBRAKE_IMAGE=zocker160/handbrake-nvenc:18x #GPU +#NVIDIA_VISIBLE_DEVICES=all #GPU +#NVIDIA_DRIVER_CAPABILITIES=all #GPU +HANDBRAKE_RESTART=unless-stopped +HANDBRAKE_ENV=sample.env +HANDBRAKE_PORT=5800 -# Handbrake -HANDBRAKE_IMAGE=jlesage/handbrake:latest AUTOMATED_CONVERSION=1 # 0 for no AUTOMATED_CONVERSION_FORMAT=m4v AUTOMATED_CONVERSION_KEEP_SOURCE=1 # 0 for remove @@ -19,7 +21,9 @@ AUTOMATED_CONVERSION_OUTPUT_DIR=/output AUTOMATED_CONVERSION_PRESET_2='Very Fast 1080p30' AUTOMATED_CONVERSION_OUTPUT_DIR_2=/output -# Handbrake with GPU -#HANDBRAKE_IMAGE=zocker160/handbrake-nvenc:18x -#NVIDIA_VISIBLE_DEVICES=all -#NVIDIA_DRIVER_CAPABILITIES=all +# Password Protect +SECURE_CONNECTION=1 +WEB_AUTHENTICATION=1 +WEB_AUTHENTICATION_TOKEN_VALIDITY_TIME=40 +WEB_AUTHENTICATION_USERNAME=username +WEB_AUTHENTICATION_PASSWORD=p@ssw0rd diff --git a/handbrake_dev/portainer.yml b/handbrake_dev/portainer.yml deleted file mode 100644 index cdcc622..0000000 --- a/handbrake_dev/portainer.yml +++ /dev/null @@ -1,33 +0,0 @@ -# Here is what I'm using for portainer copied into the editor -# It will only work if you copy the env section into the env section of portainer -services: - handbrake: - image: ${HANDBRAKE_IMAGE:-jlesage/handbrake:latest} - restart: "unless-stopped" - container_name: handbrake - volumes: - - "/handbrake/config:/config/ghb" - - "/handbrake/downloads:/storage" - - "/handbrake/done:/output" - - "/handbrake/720:/watch" - - "/handbrake/4k:/watch2" - - "/handbrake/trash:/trash" - environment: - - HANDBRAKE_IMAGE=zocker160/handbrake-nvenc:18x - - AUTOMATED_CONVERSION=1 - - AUTOMATED_CONVERSION_FORMAT=m4v - - AUTOMATED_CONVERSION_KEEP_SOURCE=0 - - AUTOMATED_CONVERSION_USE_TRASH=1 - - AUTOMATED_CONVERSION_MAX_WATCH_FOLDERS=2 - - AUTOMATED_CONVERSION_PRESET="nix/720" - - AUTOMATED_CONVERSION_OUTPUT_DIR="/output" - - AUTOMATED_CONVERSION_PRESET_2="nix/4K" - - AUTOMATED_CONVERSION_OUTPUT_DIR_2="/output" - ports: - - "5800:5800" - runtime: nvidia - deploy: - resources: - reservations: - devices: - - capabilities: [gpu] \ No newline at end of file diff --git a/handbrake_dev/stack.env b/handbrake_dev/stack.env deleted file mode 100644 index d357f72..0000000 --- a/handbrake_dev/stack.env +++ /dev/null @@ -1,25 +0,0 @@ -# Global -VOL_PATH=/docker/vol/handbrake-data #HELP: volpath -VOL_CONFIG_PATH=/docker/vol #HELP: configpath -COOKBOOK=/home/user/git/docker-compose-cookbooks #HELP: cookbooks - -# Handbrake -HANDBRAKE_IMAGE=jlesage/handbrake:latest -AUTOMATED_CONVERSION=1 # 0 for no -AUTOMATED_CONVERSION_FORMAT=m4v -AUTOMATED_CONVERSION_KEEP_SOURCE=1 # 0 for remove -AUTOMATED_CONVERSION_USE_TRASH=0 # 1 for yes. Required KEEP_SOURCE -AUTOMATED_CONVERSION_OVERWRITE_OUTPUT=0 -AUTOMATED_CONVERSION_NO_GUI_PROGRESS=0 # 0 is show -AUTOMATED_CONVERSION_MAX_WATCH_FOLDERS=2 - -AUTOMATED_CONVERSION_PRESET='Very Fast 1080p30' -AUTOMATED_CONVERSION_OUTPUT_DIR=/output - -AUTOMATED_CONVERSION_PRESET_2='Very Fast 1080p30' -AUTOMATED_CONVERSION_OUTPUT_DIR_2=/output - -# Handbrake with GPU -#HANDBRAKE_IMAGE=zocker160/handbrake-nvenc:18x -#NVIDIA_VISIBLE_DEVICES=all -#NVIDIA_DRIVER_CAPABILITIES=all