From 2548b064e6199055592ffe3e52fe34ed29bfb94d Mon Sep 17 00:00:00 2001 From: Nick Yeoman Date: Sun, 21 Jul 2024 23:33:04 -0700 Subject: [PATCH] handbrake working --- handbrake/README.md | 21 +++++++++++++++++++ handbrake/docker-compose.yml | 40 +++++++----------------------------- handbrake/sample-extends.yml | 9 ++++++++ handbrake/sample.env | 5 +++++ 4 files changed, 42 insertions(+), 33 deletions(-) create mode 100644 handbrake/README.md create mode 100644 handbrake/sample-extends.yml create mode 100644 handbrake/sample.env diff --git a/handbrake/README.md b/handbrake/README.md new file mode 100644 index 0000000..3f4b3de --- /dev/null +++ b/handbrake/README.md @@ -0,0 +1,21 @@ +# Handbrake + +DockerHub: https://hub.docker.com/r/jlesage/handbrake + +## SAMPLE ENV + +```text +# Handbrake +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_IMAGE=jlesage/handbrake:latest +``` + +## NOTES + +You can specify read and write for example: +"handbrake-storage:/storage:ro" +"handbrake-output:/output:rw" + + \ No newline at end of file diff --git a/handbrake/docker-compose.yml b/handbrake/docker-compose.yml index b551261..c99a11c 100644 --- a/handbrake/docker-compose.yml +++ b/handbrake/docker-compose.yml @@ -1,40 +1,14 @@ --- version: "3" -########################################################################################################################### -# Handbrake -# -# DockerHub: https://hub.docker.com/r/jlesage/handbrake -# -# SAMPLE ENV -# -# -# NOTES -# -# You can specify read and write for example: -# "handbrake-storage:/storage:ro" -# "handbrake-output:/output:rw" -# -# Gotcha ubuntu zfs -# mkdir /etc/docker -# nano /etc/docker/daemon.json -# { -# "storage-driver": "fuse-overlayfs" -# } <- put this inside the new file daemon.json -# apt install fuse-overlayfs -# fuse-overlayfs --version -########################################################################################################################### - services: handbrake: - image: jlesage/handbrake + image: ${HANDBRAKE_IMAGE:-jlesage/handbrake:latest} volumes: - - ./data/config:/config - - ./data/raw:/storage - - ./data/watch:/watch - - ./data/processed:/output - restart: "no" + - "${VOL_CONFIG_PATH:-./config}/preferences.json:/config/ghb/preferences.json" + - "${VOL_CONFIG_PATH:-./config}/presets.json:/config/ghb/presets.json" + - "${VOL_PATH:-./data}/handbrake/storage:/storage" + - "${VOL_PATH:-./data}/handbrake/complete:/output" + restart: "unless-stopped" ports: - - "8000:5800" - - + - "5800:5800" diff --git a/handbrake/sample-extends.yml b/handbrake/sample-extends.yml new file mode 100644 index 0000000..972c938 --- /dev/null +++ b/handbrake/sample-extends.yml @@ -0,0 +1,9 @@ +version: '3.4' + +services: + handbrake: + extends: + file: ${COOKBOOK}/handbrake/docker-compose.yml + service: handbrake + env_file: + - .env \ No newline at end of file diff --git a/handbrake/sample.env b/handbrake/sample.env new file mode 100644 index 0000000..82b4744 --- /dev/null +++ b/handbrake/sample.env @@ -0,0 +1,5 @@ +# Handbrake +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_IMAGE=jlesage/handbrake:latest \ No newline at end of file