Skip to content

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.

  • Linux (x86_64 or arm64) 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/devices

    If nothing is printed, load the module or install your distribution’s extra kernel modules package (for example linux-modules-extra-$(uname -r) on Ubuntu and modprobe binder_linux).

  • GPU (optional). Hardware rendering uses a Mesa-supported /dev/dri/renderD128 node (Intel or AMD integrated graphics on x86_64). On headless servers, arm64 hosts or VMs without /dev/dri/renderD128, provider-docker falls back to software rendering (androidboot.redroid_gpu_mode=guest) automatically; you can also set redroid.gpu: "" explicitly.

  • Architecture notes (arm64). holtdroid, holtdroid-session, holtdroid-sync and holtdroid-redroid (Android 12–16) publish multi-arch linux/amd64 and linux/arm64 images. On arm64, Android runs native 64-bit arm64-v8a only (upstream _64only bases so Apple Silicon, Graviton 3/4, Ampere and Raspberry Pi 5 boot without 32-bit ARM hardware); x86_64-only and armeabi-v7a-only APKs cannot run on arm64, and Android 11 is linux/amd64 only.

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).

  1. Save compose.yaml (also shipped in the repository at deploy/docker/compose.yaml):

    compose.yaml
    services:
    api:
    image: ghcr.io/holtdroid/holtdroid:main
    command: ["api", "--config", "/etc/holtdroid/config.yaml"]
    restart: unless-stopped
    ports:
    - "8080:8080"
    depends_on:
    - provider-docker
    configs:
    - source: api-config
    target: /etc/holtdroid/config.yaml
    volumes:
    - holtdroid-data:/var/lib/holtdroid
    - holtdroid-cache:/var/cache/holtdroid
    - holtdroid-sync:/var/lib/holtdroid/sync:ro
    networks:
    - holtdroid
    provider-docker:
    image: ghcr.io/holtdroid/holtdroid:main
    command: ["provider-docker", "--config", "/etc/holtdroid/config.yaml"]
    restart: unless-stopped
    user: "0:0"
    configs:
    - source: provider-docker-config
    target: /etc/holtdroid/config.yaml
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - holtdroid-provider-state:/var/lib/holtdroid
    networks:
    - holtdroid
    sync:
    image: ghcr.io/holtdroid/holtdroid-sync:main
    command: ["holtdroid-github-sync", "--config", "/etc/holtdroid-sync/config.yaml"]
    restart: unless-stopped
    depends_on:
    - api
    configs:
    - source: sync-config
    target: /etc/holtdroid-sync/config.yaml
    volumes:
    - holtdroid-sync:/var/lib/holtdroid/sync
    networks:
    - holtdroid
    configs:
    api-config:
    content: |
    listen: ":8080"
    internalListen: ":8081"
    internalURL: http://api:8081
    auth:
    mode: none
    database:
    type: sqlite
    path: /var/lib/holtdroid/holtdroid.db
    storage:
    type: filesystem
    filesystem:
    dir: /var/cache/holtdroid
    recordings:
    enabled: true
    quota: 5GiB
    appData:
    enabled: true
    sources:
    - name: local
    type: filesystem
    filesystem:
    dir: /var/lib/holtdroid/apks
    - name: github
    type: filesystem
    readOnly: true
    pollInterval: 15s
    filesystem:
    dir: /var/lib/holtdroid/sync/github
    providers:
    - name: docker
    url: http://provider-docker:8080
    provider-docker-config:
    content: |
    listen: ":8080"
    network: holtdroid
    slots: 2
    image: ghcr.io/holtdroid/holtdroid-session:main
    redroid:
    images:
    "15": ghcr.io/holtdroid/holtdroid-redroid:15
    # Falls back to software rendering automatically if /dev/dri/renderD128 is absent.
    gpu: /dev/dri/renderD128
    stateFile: /var/lib/holtdroid/docker-state.json
    sync-config:
    content: |
    interval: 6h
    repos:
    - repo: holtdroid/holtdroid-webview
    releases: 1
    include:
    - "!*-gecko-*.apk"
    - repo: holtdroid/chromium-builds
    releases: 1
    include:
    - "*/chromium-*-x86_64.apk"
    - "*/chromium-*-arm64.apk"
    target:
    type: filesystem
    filesystem:
    dir: /var/lib/holtdroid/sync/github
    networks:
    holtdroid:
    name: holtdroid
    volumes:
    holtdroid-data:
    holtdroid-cache:
    holtdroid-sync:
    holtdroid-provider-state:
  2. Start the stack:

    Terminal window
    docker compose up -d
  3. Open http://localhost:8080.

    Within half a minute the sync service finishes downloading Holtdroid WebView and Chromium into the github source, and they appear on the Apps page automatically. You can also upload any APK with the Upload button — it is stored in the local local source volume.

    On the very first launch, provider-docker pulls holtdroid-redroid:15 and holtdroid-session:main in 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:main
    docker pull ghcr.io/holtdroid/holtdroid-redroid:15

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:

Terminal window
brew install lima
limactl start --yes --name=holtdroid deploy/docker/lima-holtdroid.yaml
export DOCKER_HOST="unix://$HOME/.lima/holtdroid/sock/docker.sock"
docker compose -f deploy/docker/compose.yaml up -d

Then 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).

  • 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 sync with holtdroid-chromium-builds-sync writing to /var/lib/holtdroid/sync/chromium-builds, then point a read-only source at …/browser and webview.storage at …/webview (see Chromium versions).
  • Turn on sign-in before exposing to a network. Replace auth.mode: none with anonymous, password, oidc, header or users — see Authentication.
  • Add VPN locations, more Android versions or S3 storage. See the full Docker provider and Storage configuration references.