HandBrake Docker Setup: Compose, Synology NAS and Proxmox

  • Post author:Frank Joseph
  • Post published:
  • Post last modified:
  • Post category:Docker
  • Reading time:12 mins read

The easiest way to run HandBrake in Docker is the jlesage/handbrake image, deployed from a Docker Compose file that publishes port 5800 and maps four folders. As soon as it’s running, you get the full HandBrake app in a browser tab, and because the HandBrake Docker image works on any x86-64 Docker host, the same Compose file covers a Linux server, a Portainer stack, a Synology NAS or a Docker host on Proxmox.

Everything here was checked against the image’s documentation in October 2026, when the current release was v26.09.1 with HandBrake 1.11.2 inside it. The image also has a watch folder that converts any video you drop into it, and that’s the best reason to run HandBrake on a server.

Which HandBrake Docker Image to Use: jlesage/handbrake

There are two images people generally choose between, jlesage/handbrake and linuxserver/handbrake, and for most people jlesage is the one to use. It serves the GUI on port 5800, has its own login page, and has an automatic watch-folder converter built in. The linuxserver image uses ports 3000 and 3001, has no authentication by default, and its docs describe no watch-folder converter.

The jlesage image is unofficial (it is not made by the creators of HandBrake), though it’s actively maintained and has more than 50 million pulls. And it’s x86-64 only, like the linuxserver image, so neither runs on an ARM-based NAS or a Raspberry Pi.

HandBrake Docker Compose File

Below is the Compose file this guide uses. It’s the README’s example with a restart policy, a time zone, dark mode and the login page added, and the host path on the left side of each volume is yours to change (/mnt/media has to be your video folder).

services:
  handbrake:
    image: jlesage/handbrake
    container_name: handbrake
    restart: always
    ports:
      - "5800:5800"
    environment:
      TZ: "America/New_York"
      DARK_MODE: "1"
      SECURE_CONNECTION: "1"
      WEB_AUTHENTICATION: "1"
      WEB_AUTHENTICATION_USERNAME: "admin"
      WEB_AUTHENTICATION_PASSWORD: "change-this-password"
    volumes:
      - "/docker/handbrake/config:/config:rw"
      - "/mnt/media:/storage:ro"
      - "/docker/handbrake/watch:/watch:rw"
      - "/docker/handbrake/output:/output:rw"

The four volumes:

  • /config holds HandBrake’s settings, presets and logs, and as long as this mapping stays the same, you can delete and recreate the container without losing anything.
  • /storage is the folder of videos you want HandBrake to see. It’s mounted :ro (read-only), so the container can never modify or delete your originals.
  • /watch is the automatic conversion folder, and any video copied into it gets converted on its own.
  • /output is where converted files land, both from the watch folder and from anything you encode by hand.

TZ sets the time zone, DARK_MODE turns on HandBrake’s dark theme, and SECURE_CONNECTION serves it over HTTPS. WEB_AUTHENTICATION adds a login page with the username and password below it, and it only works with SECURE_CONNECTION on, so keep both and change the password before you deploy. The full list is in the environment variables section of the jlesage README.

Port 5800 is the web interface. The image also runs a VNC server on 5900, but you only need to map it if you plan to use a VNC client, and if 5800 is taken on your host, change only the left side ("5801:5800"). The container runs as user and group ID 1000 by default, so if it can’t write to the watch or output folders, run id <username> on the host and set USER_ID and GROUP_ID to match.

How to Install HandBrake in Docker

To install the HandBrake Docker container, save the Compose file above and run docker compose up -d. Every method below except Unraid uses that file.

Deploy with Docker Compose

1. Create the folders on your Docker host, then save the Compose file above as compose.yaml in /docker/handbrake (with sudo if your user isn’t UID 1000).

sudo mkdir -p /docker/handbrake/config /docker/handbrake/watch /docker/handbrake/output && sudo chown -R 1000:1000 /docker/handbrake

2. From that folder, run the command below. The first run pulls the image, then starts the container in the background.

docker compose up -d

If you’d rather not use Compose, here’s the same container as a docker run command (add -e lines for the rest), though I’d use Compose so the whole configuration lives in one file you can move to another server.

docker run -d --name=handbrake --restart=always -p 5800:5800 \
  -e TZ=America/New_York -e SECURE_CONNECTION=1 \
  -e WEB_AUTHENTICATION=1 -e WEB_AUTHENTICATION_USERNAME=admin -e WEB_AUTHENTICATION_PASSWORD=change-this-password \
  -v /docker/handbrake/config:/config:rw \
  -v /mnt/media:/storage:ro \
  -v /docker/handbrake/watch:/watch:rw \
  -v /docker/handbrake/output:/output:rw \
  jlesage/handbrake

Deploy as a Portainer Stack

Portainer isn’t required, but if it’s already on your Docker host (Portainer install guide), a stack is the easiest way to paste in a Compose file. These labels are from Portainer CE 2.39 LTS and match the current 2.45 LTS. Other Docker managers take the same file.

1. Run the folder command from the Compose steps, then open Portainer, select your environment, then Stacks, and finally, Add stack.

2. Give the stack a Name (handbrake), select Web editor, and paste the Compose file into it.

Portainer's Create stack page with the stack named handbrake, Web editor selected and the HandBrake compose file pasted in

3. Select Deploy the stack. Portainer pulls the image and starts the handbrake stack.

Portainer's stack details page for the handbrake stack with its handbrake container running and port 5800 published

Unraid

Community Applications has a HandBrake template from Djoss’ Repository that uses the same jlesage/handbrake image, with the web UI on host port 7803 by default. Pick that template, set Watch Directory and Output Directory, switch to Advanced View and turn on Secure Connection and Web Authentication with a username and password, and for Quick Sync add /dev/dri as a device (recent Unraid versions load the i915 driver automatically).

Open the HandBrake Web UI

Open a browser to your Docker host’s IP address on port 5800 (7803 on Unraid). It’s HTTPS with a self-signed certificate, so expect a warning the first time.

https://[DOCKER_HOST_IP]:5800
The HandBrake web UI login page served over HTTPS on port 5800, in dark mode

Sign in on the Welcome Back page with the Username and Password you set, then select Login.

HandBrake's main window running in a browser tab from the jlesage/handbrake container, in dark mode

The small three-dots tab on the left edge opens the image’s control panel, with fullscreen, a Clipboard box, display Settings, both version numbers and a logout icon.

The control panel opened from the three-dots tab on the left edge of the HandBrake web UI, with fullscreen, clipboard, scaling mode and the version labels

The login password sits in the container’s environment, where anyone with Docker access can read it with docker inspect. docker exec -ti handbrake webauth-user add admin stores the login in /config instead, once you delete the two WEB_AUTHENTICATION_ user lines and redeploy. Neither one makes it safe to expose port 5800 to the internet, and security settings and defaults change, so nothing here is a guarantee.

Convert a Video

1. Select Open Source in the toolbar, pick a file in the storage folder (your /storage mapping), and select Open.

HandBrake's Open Source dialog browsing the storage folder, which is the read-only /storage mapping, with two sample video clips listed

2. Source now shows the clip’s details, and Preset defaults to Official > General > Fast 1080p30.

3. At the bottom, Save As is the file name and To is the folder. Leave To on output, since /storage is read-only and anything saved outside the mapped folders stays inside the container.

HandBrake with a sample clip from /storage loaded, the Fast 1080p30 preset selected, and Save As and To set to a file in the output folder

4. Select Start, or Add To Queue to line up several files first. Queue shows the progress with Stop and Pause, and the status bar reads Encoding: with a percentage.

HandBrake's queue with a sample clip encoding to the /output folder and its progress bar

HandBrake also pauses the queue with a Low Disk Space: Encoding Paused dialog when the output drive drops to 10 GB free, the limit this image sets (HandBrake’s own default is 2 GB).

Updating the HandBrake Container

Your settings live in /config, so updating means pulling the new image and recreating the container. With Compose, run the two commands below from the same folder, and in Portainer you can update a container with Portainer by redeploying the stack with a fresh pull.

docker compose pull
docker compose up -d

If you’d like updates handled for you, I’d recommend Dockhand (my pick in October 2026).

Automatic Video Conversion with the Watch Folder

Automatic conversion is on by default. Any video copied into the host folder mapped to /watch is converted with the General/Very Fast 1080p30 preset and saved to /output as an MP4. To change the preset, set AUTOMATED_CONVERSION_PRESET, and a preset you’ve saved in the GUI works here by its category and name.

The original stays in the watch folder after it’s converted. To remove it, set AUTOMATED_CONVERSION_KEEP_SOURCE to 0, and add AUTOMATED_CONVERSION_USE_TRASH too, which moves the source to a /trash folder instead of deleting it. Create that folder with sudo mkdir /docker/handbrake/trash && sudo chown 1000:1000 /docker/handbrake/trash (on Synology, in File Station, with /volume1 before the volume line’s path) and add - "/docker/handbrake/trash:/trash:rw" under volumes:, or the container won’t start. Add these under environment:, then rerun docker compose up -d (in Portainer, edit the stack and select Update the stack):

      AUTOMATED_CONVERSION_PRESET: "General/Fast 1080p30"
      AUTOMATED_CONVERSION_KEEP_SOURCE: "0"
      AUTOMATED_CONVERSION_USE_TRASH: "1"

Progress shows in the GUI and in docker logs handbrake. For more than one watch folder, map /watch2 up to /watch5, and give any of them its own preset with a number on the end (AUTOMATED_CONVERSION_PRESET_2).

HandBrake Docker Hardware Acceleration with Intel Quick Sync

HandBrake can encode with Intel Quick Sync on a Skylake (6th-gen Core) or newer Intel CPU (9th-gen and later officially), Apollo Lake and later Celerons included, with the i915 driver on the host. Check that /dev/dri exists first (ls /dev/dri should list renderD128), because Docker won’t start a container with a device that isn’t there. Then pass it into the container with two lines at the same level as volumes: and rerun docker compose up -d.

    devices:
      - /dev/dri:/dev/dri

When it works, HandBrake offers the H.264 (Intel QSV) encoder, and if that option isn’t there, the container log says why. If the log says /dev/dri belongs to the root group, the README’s first fix is sudo chown root:video /dev/dri/* on the host and a container restart (redo it after a host reboot), not running the container as root.

The jlesage README documents Quick Sync only, so if you’re planning around an NVIDIA card, this isn’t the image for it.

HandBrake Synology Setup with Container Manager

On an x86-64 Synology NAS, the Docker HandBrake container runs as a Container Manager project, which is a Compose file with a folder behind it. When I set up Container Manager on DSM 7.2 in 2023, I said the Project tab is where everybody should live. The steps below match Synology’s DSM 7.4 help as of October 2026.

1. Install Container Manager from Package Center, which creates the docker shared folder, then open File Station and create a handbrake folder inside it, then config, watch and output folders inside it. Don’t just use the top of the docker folder, as a subfolder per project makes your life a lot easier.

2. Open Container Manager, select Project, then Create.

3. Enter a Project Name (handbrake), select Set Path and pick docker > handbrake, and for Source, select Create docker-compose.yml.

4. Paste the Compose file from above, then replace the volumes: section with the Synology paths below (volume1 is usually your first volume, and Media is whichever shared folder holds your videos), and under environment: add USER_ID and GROUP_ID set to your DSM user’s IDs, since DSM users don’t start at 1000 (id <username> over SSH, which you turn on under Control Panel > Terminal & SNMP).

    volumes:
      - "/volume1/docker/handbrake/config:/config:rw"
      - "/volume1/Media:/storage:ro"
      - "/volume1/docker/handbrake/watch:/watch:rw"
      - "/volume1/docker/handbrake/output:/output:rw"

5. Skip the web portal option, confirm the summary, choose to start the project, and select Done. HandBrake is then at https://[NAS_IP]:5800.

Quick Sync depends on the model. AMD Ryzen models like the DS925+ and DS923+ have no integrated graphics, and even an Intel CPU doesn’t guarantee /dev/dri exists. SSH into the NAS and run ls /dev/dri, and if it lists renderD128, add the devices: lines in step 4, or afterwards in the project’s YAML Configurations tab. If the device isn’t there, leave those lines out and HandBrake uses the CPU. For the first version of this guide in January 2023, I tested hardware acceleration on a Synology NAS and it worked, though the performance wasn’t good, and I couldn’t tell yet if that was the NAS’s hardware or the acceleration itself.

There’s more on projects in this guide to Synology Container Manager and Docker Compose.

HandBrake Proxmox Setup

Proxmox doesn’t run Docker containers in a way most people would use (its OCI application containers are a technology preview in Proxmox VE 9.2). So HandBrake goes on a Docker host inside Proxmox, either a VM or an LXC, and the same Compose file applies.

A VM is what Proxmox recommends for the most isolation, and the steps are in this guide to running Docker in a Proxmox VM. The catch is Quick Sync, because the iGPU has to go to the VM through PCI passthrough, which takes it away from the host.

An LXC is lighter, and it’s how I ran Docker in the mini PC home server I built on Proxmox in early 2024. It was an unprivileged container (you do not want Docker in a privileged one) with keyctl turned on under Options > Features and Docker installed from Docker’s own commands.

If your videos are on a NAS, mount the share on the Proxmox host, bind-mount it into the LXC and use that path for /storage. For Quick Sync, Proxmox VE 8.2 and later can pass a device into an LXC from the GUI. In the LXC, run getent group render for the GID, then, logged in as root@pam, select the container’s Resources > Add > Device Passthrough, enter /dev/dri/renderD128, set GID in CT under Advanced, and reboot it before adding devices: to the Compose file. Both steps are in this guide to Jellyfin in a Proxmox LXC.

Frank Joseph

I'm Frank, founder of WunderTech. I've been working in enterprise IT for 15+ years and running home labs for nearly a decade — every tutorial on this site is tested on hardware I actually own, including Synology NAS units, a DIY TrueNAS server, a Proxmox cluster, a full UniFi network, and more. I hold a BS in Computer Information Systems and an MBA, but most of what you'll read here comes from my home lab, not a classroom. You can also find video versions of these tutorials on my YouTube channel.