handbrake and portainer

This commit is contained in:
2025-02-12 00:10:42 -08:00
parent da850ffbfb
commit 1dbb4731fa
+13 -13
View File
@@ -1,4 +1,5 @@
# Here is what I'm using for portainer copied into the editor # 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: services:
handbrake: handbrake:
image: ${HANDBRAKE_IMAGE:-jlesage/handbrake:latest} image: ${HANDBRAKE_IMAGE:-jlesage/handbrake:latest}
@@ -11,6 +12,17 @@ services:
- "/handbrake/720:/watch" - "/handbrake/720:/watch"
- "/handbrake/4k:/watch2" - "/handbrake/4k:/watch2"
- "/handbrake/trash:/trash" - "/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: ports:
- "5800:5800" - "5800:5800"
runtime: nvidia runtime: nvidia
@@ -18,16 +30,4 @@ services:
resources: resources:
reservations: reservations:
devices: devices:
- capabilities: [gpu] - capabilities: [gpu]
# ENV
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"