mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 10:56:23 +00:00
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
# 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] |