Docker Compose
Run Holtdroid on Linux (x86_64 or arm64) or Apple Silicon macOS with Docker Compose, local storage, no sign-in and preconfigured Chromium and Holtdroid WebView builds.
Holtdroid does not require Kubernetes. With provider-docker, the portal, device provider and sync job start from one
compose.yaml on a Linux (x86_64 or arm64) machine or Apple Silicon Mac using local Docker volumes — no cluster, no
S3 bucket and no sign-in setup.
Host requirements
Section titled “Host requirements”-
Linux (
x86_64orarm64) with Docker Engine 25+ and Docker Compose v2.23+, or Apple Silicon macOS via Lima (see macOS (Apple Silicon) below). -
Android binderfs enabled in the host kernel (
CONFIG_ANDROID_BINDERFS). Check with:Terminal window grep -w binder /proc/devicesIf nothing is printed, load the module or install your distribution’s extra kernel modules package (for example
linux-modules-extra-$(uname -r)on Ubuntu andmodprobe binder_linux). -
GPU (optional). Hardware rendering uses a Mesa-supported
/dev/dri/renderD128node (Intel or AMD integrated graphics onx86_64). On headless servers, arm64 hosts or VMs without/dev/dri/renderD128,provider-dockerfalls back to software rendering (androidboot.redroid_gpu_mode=guest) automatically; you can also setredroid.gpu: ""explicitly. -
Architecture notes (
arm64).holtdroid,holtdroid-session,holtdroid-syncandholtdroid-redroid(Android 12–16) publish multi-archlinux/amd64andlinux/arm64images. Onarm64, Android runs native 64-bitarm64-v8aonly (upstream_64onlybases so Apple Silicon, Graviton 3/4, Ampere and Raspberry Pi 5 boot without 32-bit ARM hardware);x86_64-only andarmeabi-v7a-only APKs cannot run onarm64, and Android 11 islinux/amd64only.
Quick start
Section titled “Quick start”This lightweight example disables authentication (auth.mode: none), stores everything on local Docker volumes (APK
cache, uploads, recordings, app data and SQLite database), and runs
holtdroid-github-sync to pull the latest
Holtdroid WebView and Chromium (x86_64 and arm64) builds
directly from our GitHub repositories (~790 MB total).
-
Save
compose.yaml(also shipped in the repository atdeploy/docker/compose.yaml):compose.yaml services:api:image: ghcr.io/holtdroid/holtdroid:maincommand: ["api", "--config", "/etc/holtdroid/config.yaml"]restart: unless-stoppedports:- "8080:8080"depends_on:- provider-dockerconfigs:- source: api-configtarget: /etc/holtdroid/config.yamlvolumes:- holtdroid-data:/var/lib/holtdroid- holtdroid-cache:/var/cache/holtdroid- holtdroid-sync:/var/lib/holtdroid/sync:ronetworks:- holtdroidprovider-docker:image: ghcr.io/holtdroid/holtdroid:maincommand: ["provider-docker", "--config", "/etc/holtdroid/config.yaml"]restart: unless-stoppeduser: "0:0"configs:- source: provider-docker-configtarget: /etc/holtdroid/config.yamlvolumes:- /var/run/docker.sock:/var/run/docker.sock- holtdroid-provider-state:/var/lib/holtdroidnetworks:- holtdroidsync:image: ghcr.io/holtdroid/holtdroid-sync:maincommand: ["holtdroid-github-sync", "--config", "/etc/holtdroid-sync/config.yaml"]restart: unless-stoppeddepends_on:- apiconfigs:- source: sync-configtarget: /etc/holtdroid-sync/config.yamlvolumes:- holtdroid-sync:/var/lib/holtdroid/syncnetworks:- holtdroidconfigs:api-config:content: |listen: ":8080"internalListen: ":8081"internalURL: http://api:8081auth:mode: nonedatabase:type: sqlitepath: /var/lib/holtdroid/holtdroid.dbstorage:type: filesystemfilesystem:dir: /var/cache/holtdroidrecordings:enabled: truequota: 5GiBappData:enabled: truesources:- name: localtype: filesystemfilesystem:dir: /var/lib/holtdroid/apks- name: githubtype: filesystemreadOnly: truepollInterval: 15sfilesystem:dir: /var/lib/holtdroid/sync/githubproviders:- name: dockerurl: http://provider-docker:8080provider-docker-config:content: |listen: ":8080"network: holtdroidslots: 2image: ghcr.io/holtdroid/holtdroid-session:mainredroid:images:"15": ghcr.io/holtdroid/holtdroid-redroid:15# Falls back to software rendering automatically if /dev/dri/renderD128 is absent.gpu: /dev/dri/renderD128stateFile: /var/lib/holtdroid/docker-state.jsonsync-config:content: |interval: 6hrepos:- repo: holtdroid/holtdroid-webviewreleases: 1include:- "!*-gecko-*.apk"- repo: holtdroid/chromium-buildsreleases: 1include:- "*/chromium-*-x86_64.apk"- "*/chromium-*-arm64.apk"target:type: filesystemfilesystem:dir: /var/lib/holtdroid/sync/githubnetworks:holtdroid:name: holtdroidvolumes:holtdroid-data:holtdroid-cache:holtdroid-sync:holtdroid-provider-state: -
Start the stack:
Terminal window docker compose up -d -
Open http://localhost:8080.
Within half a minute the
syncservice finishes downloading Holtdroid WebView and Chromium into thegithubsource, and they appear on the Apps page automatically. You can also upload any APK with the Upload button — it is stored in the locallocalsource volume.On the very first launch,
provider-dockerpullsholtdroid-redroid:15andholtdroid-session:mainin the background while the session card displays pull progress. Every launch after that starts immediately from the local image cache.If you want to pre-pull the session images ahead of time:
Terminal window docker pull ghcr.io/holtdroid/holtdroid-session:maindocker pull ghcr.io/holtdroid/holtdroid-redroid:15
macOS (Apple Silicon)
Section titled “macOS (Apple Silicon)”Docker Desktop and OrbStack ship custom Linux kernels without CONFIG_ANDROID_BINDERFS, so Android containers cannot
start inside them. On Apple Silicon Macs, run Docker inside a Lima Ubuntu VM using the template
shipped at deploy/docker/lima-holtdroid.yaml — it installs linux-modules-extra, loads binder_linux and
mac80211_hwsim (simulated Wi-Fi), and exposes rootful Docker on a Unix socket:
brew install limalimactl start --yes --name=holtdroid deploy/docker/lima-holtdroid.yamlexport DOCKER_HOST="unix://$HOME/.lima/holtdroid/sock/docker.sock"docker compose -f deploy/docker/compose.yaml up -dThen open http://localhost:8080 — Lima forwards port 8080 to macOS automatically. Android
12–16 run natively on Apple Silicon in software rendering mode (guest); pick the arm64 Chromium APK (or any
arm64-v8a / universal APK such as Holtdroid WebView).
Next steps
Section titled “Next steps”- Full Chromium & WebView milestone catalog. The lightweight example above keeps only the latest Chromium release.
To mirror every milestone from Chromium 83+ and enable the launch dialog’s WebView version selector on local disk
(~55 GB), replace or complement
syncwithholtdroid-chromium-builds-syncwriting to/var/lib/holtdroid/sync/chromium-builds, then point a read-only source at…/browserandwebview.storageat…/webview(see Chromium versions). - Turn on sign-in before exposing to a network. Replace
auth.mode: nonewithanonymous,password,oidc,headerorusers— see Authentication. - Add VPN locations, more Android versions or S3 storage. See the full Docker provider and Storage configuration references.