Configuration

The self-hosted vuzon is one Compose file and one .env — every block of the file, every environment variable, and what is best left as is.

On this page

docker-compose.yml

File structure

vuzon runs as a single service: no external database, no queues. This is the reference Compose file, the same one the repository ships:

docker-compose.yml
services:
  vuzon:
    container_name: vuzon
    image: ghcr.io/kn990x/vuzon:latest
    env_file:
      - path: .env
        required: false
    environment:
      PORT: "8001"
    restart: unless-stopped
    init: true
    read_only: true
    tmpfs:
      - /tmp
    volumes:
      - vuzon-data:/app/data
    cap_drop:
      - ALL
    security_opt:
      - no-new-privileges:true
    ports:
      - "${VUZON_PORT:-8001}:8001"
    # Healthcheck is declared in the Dockerfile; compose inherits it.

volumes:
  vuzon-data:

Note: keep DOMAIN and CF_API_TOKEN in a .env file next to the compose; Docker injects it automatically (env_file with required: false needs Compose v2.24+).

Image tags

The image is published to ghcr.io/kn990x/vuzon on every release, multi-arch amd64 / arm64. latest always points at the newest published image — including a new major version, which is where breaking changes live, so read the release notes before you update. To decide when a jump happens, pin a concrete version on the image: line instead — see Updates and backups.

Ports and network

vuzon exposes a single HTTP port for the panel and its API. The compose publishes host port VUZON_PORT (default 8001) mapped to the container’s 8001.

Warning: do not expose the panel port directly to the internet. Serve it behind a reverse proxy with TLS (Caddy, Traefik, nginx) or a Cloudflare Tunnel — see Reverse proxy & TLS.

Volumes and persistence

There is no database. The only writable path is the vuzon-data volume, mounted at /app/data, which holds:

  • Your panel credentials, as a scrypt hash.
  • The cookie signing key the panel generates for itself.
  • The session revocation mark, which is what makes a sign-out survive a restart.

Losing this volume means losing the panel password: the setup wizard reopens and the first visitor claims the panel. Back it up like any other homelab state — see Updates and backups.

Hardening baked in

The compose ships locked down by default, and the image cooperates:

  • read_only: true — the image filesystem stays read-only; /tmp lives on tmpfs.
  • cap_drop: ALL and no-new-privileges — the container runs as a non-root user with every capability dropped.
  • init: true — PID 1 reaps zombies and forwards signals, so docker stop shuts the panel down cleanly.
  • A /healthz healthcheck keeps docker ps honest about the panel’s state — it is declared by the image, so Compose inherits it and there is nothing to repeat here.

Environment variables

Required

The panel login is not an environment variable — you choose it in the browser on the first visit.

Variable Purpose
CF_API_TOKEN Cloudflare API token with the three scopes listed in Cloudflare.
DOMAIN Zone apex in Cloudflare; used to resolve zone/account if IDs are not set.
.env
# The email domain you manage in Cloudflare, e.g. mydomain.dev
DOMAIN=

# Cloudflare API token (see the API token page)
CF_API_TOKEN=

Optional

The defaults are meant for a homelab on plain HTTP.

Variable Default Purpose
VUZON_PORT 8001 Host TCP port mapped to the app.
VUZON_DATA_DIR /app/data (Docker) Where the panel keeps its three files: credentials (hashed), cookie signing key and session revocation mark. Must be writable and survive restarts. From source it defaults to ./data.
COOKIE_SECURE off Set to 1 so the session cookie is marked Secure (HTTPS / TLS-terminating proxy). Off by default so homelab HTTP works.
TRUST_PROXY off Set behind a reverse proxy so the real client IP reaches the login rate limit. Leave it off unless a trusted proxy is the only way to reach the panel — see Reverse proxy & TLS.
CF_ZONE_ID auto Only needed when autodetection from DOMAIN fails; set together with CF_ACCOUNT_ID.
CF_ACCOUNT_ID auto See above.

If autodetection from DOMAIN fails: add both CF_ZONE_ID and CF_ACCOUNT_ID to your .env — they are not in the template, you only need them when the startup error asks for them. Autodetection also stops if two zones share the same name.

Local development

With pnpm start outside Docker, PORT overrides VUZON_PORT for the listen port. The Docker image sets NODE_ENV=production; cookies stay usable over HTTP unless you set COOKIE_SECURE=1. Other developer-oriented variables (VUZON_PUBLIC_DIR) live in the repository’s CONTRIBUTING.