Skip to content

Configuration reference

All configuration of the Docker stack lives in one env file: .env in the compose directory for manual setups, or <config-root>/.env (default /var/lib/openflare/.env) for the installer. Compose substitutes these values into docker-compose.all-in-one.yml.

OpenFlare services do not take their master secrets as plain environment variables. Instead:

  1. Compose defines named secrets and mounts each one into the container as a read-only file under /run/secrets/<name>.
  2. The service receives an environment variable such as PLANE_ADMIN_TOKEN_FILE=/run/secrets/plane_admin_token, which points at that file.
  3. The application reads the file at start-up.

This keeps secrets out of docker inspect environment listings and out of child processes’ environments.

Rules applied by the plane when it reads a secret named <NAME>:

  • <NAME>_FILE is preferred. If it is set, the plain <NAME> variable is ignored.
  • A _FILE that cannot be read, or that is empty, is a hard error and the service refuses to start.
  • If the _FILE is set but empty while the plain variable has a value, that is also an error. It will not silently fall back.
  • Values are trimmed of surrounding whitespace, so a trailing newline in the file is fine.
Secret (container file) Source on the host Used by
database_url File <config-root>/secrets/database_url plane
plane_admin_token PLANE_ADMIN_TOKEN in .env plane, console, cell-init
plane_signing_secret PLANE_SIGNING_SECRET in .env plane, cell-init
plane_secrets_key PLANE_SECRETS_KEY in .env plane
console_auth_password CONSOLE_AUTH_PASSWORD in .env console
openflare_updater_token OPENFLARE_UPDATER_TOKEN in .env updater
cloudflare_zone_api_token File <config-root>/secrets/cloudflare_zone_api_token traefik
cloudflare_dns_api_token File <config-root>/secrets/cloudflare_dns_api_token traefik
github_app_private_key File named by OPENFLARE_GITHUB_APP_PRIVATE_KEY_SOURCE git-runner
github_webhook_secret File named by OPENFLARE_GITHUB_WEBHOOK_SECRET_SOURCE plane
git_runner_token File named by OPENFLARE_GIT_RUNNER_TOKEN_SOURCE plane, git-runner

The three push-deploy sources are optional. When push deploy is off they point at an empty placeholder file shipped in the repository, and the plane treats the feature as disabled.

Some values are still passed as plain environment variables because the underlying images expect them: POSTGRES_PASSWORD, REDIS_PASSWORD, VRT_CACHE_PURGE_TOKEN, VRT_R2_ACCESS_KEY, VRT_R2_SECRET_KEY, VRT_R2_BINDING_ACCESS_KEY, VRT_R2_BINDING_SECRET_KEY, and OPENFLARE_UPDATER_TOKEN for the console. Protect the env file accordingly: mode 0600, never committed, never in a shared location.

Secret Requirement
PLANE_ADMIN_TOKEN At least 32 characters
PLANE_SIGNING_SECRET At least 32 characters
PLANE_SECRETS_KEY At least 32 characters
Git runner token At least 32 characters, and must differ from the admin token
REDIS_PASSWORD Only A-Z a-z 0-9 . _ ~ -; any other character makes Redis exit at start-up
Cloudflare tokens (installer) 20 to 160 characters from A-Z a-z 0-9 _ -

These are read by Compose itself. They are optional unless stated.

Variable Default Description
COMPOSE_PROFILES none Comma-separated profiles to enable (tls, update, gitdeploy). The installer writes tls[,update][,gitdeploy].
OPENFLARE_REGISTRY ghcr.io/becoolme Registry prefix for all OpenFlare images.
OPENFLARE_IMAGE_TAG the release the checkout was built for Tag for all OpenFlare images. The updater edits this key when you upgrade.
OPENFLARE_CONFIG_ROOT none (required) Host directory holding generated config and secret files.
WORKERS_DOMAIN workers.local Base domain of worker hostnames. Used by the plane, git-runner and the local DNS service.
PLANE_RESERVED_WORKER_LABELS console,api,www,mail,smtp,imap,pop,auth,admin,status,traefik,dashboard,hooks Single-label names workers may not claim.
PLANE_BIND 127.0.0.1 Host address the plane port (8787) binds to.
CONSOLE_BIND 127.0.0.1 Host address the console port (8788) binds to.
VRT_BIND 127.0.0.1 Host address the edge HTTP port binds to.
VRT_PORT 8080 Host port of the edge HTTP listener (container port stays 8080).
VRT_TLS_BIND 0.0.0.0 Host address Traefik binds ports 80 and 443 to.
WORKERS_DNS_PORT 15353 Host port (loopback only) of the local worker DNS service.
OPENFLARE_DNS_COREFILE ./contrib/worker-dns/Corefile CoreDNS configuration for the worker DNS service.
VRT_UID, VRT_GID 10001 User and group the cell services run as.
VRT_NET_SUBNET 172.31.42.0/24 Subnet of the default network.
VRT_TRAEFIK_IP 172.31.42.250 Fixed address of Traefik on the default network.
S3_IMAGE pgsty/silo:RELEASE.2026-11-12T00-00-00Z Object storage image.
TRAEFIK_IMAGE traefik:v3.7.20 Traefik image.
OPENFLARE_CELL_CONTROLLER_IMAGE, OPENFLARE_PROVIDER_IMAGE <registry>/openflare-cell-controller:<tag> and <registry>/openflare-provider:<tag> Override the cell controller and provider images.

The installer’s env file does not contain the bind, port, subnet or Traefik IP variables; they are optional overrides you can add yourself. If you change VRT_TRAEFIK_IP or VRT_NET_SUBNET, also review VRT_TRUSTED_CIDR (below), whose default is the default Traefik address.

Variable Required Description
POSTGRES_PASSWORD yes Password of the vrt database user. Must match the password inside the database_url secret file.
REDIS_PASSWORD yes Password for Redis. Restricted character set, see above.

The database user is vrt and the database is vrt_plane. These names are fixed.

Variable Default Description
PLANE_ADMIN_TOKEN required Admin API token (32+ characters). Delivered as a file.
PLANE_SIGNING_SECRET required Signing secret (32+ characters). Delivered as a file.
PLANE_SECRETS_KEY required Encryption key for stored secrets (32+ characters). Delivered as a file.
DATABASE_URL_FILE /run/secrets/database_url Database connection string file. Required.
PORT 8787 Listen port (1 to 65535). Set by compose.
PLANE_ASSET_DIR /data/assets in the container Where worker assets are stored (volume plane-assets).
PLANE_BUNDLE_DIR /data/bundles in the container Where worker bundles are stored (volume plane-bundles).
PLANE_DEFAULT_WORKER_DOMAIN ${WORKERS_DOMAIN} Default hostname suffix for new workers.
PLANE_RESERVED_WORKER_LABELS see global table Names that cannot be used for workers.
GITHUB_WEBHOOK_SECRET_FILE empty Webhook secret file. Without it the webhook endpoint is disabled.
PLANE_GIT_RUNNER_TOKEN_FILE empty Token shared with the git runner.
PLANE_GIT_CATALOG_URL http://git-runner:8791/catalog Where the plane reads the runner’s catalog. Set by compose.

The plane application also understands the settings below, but the all-in-one compose file does not pass them through, so setting them in .env has no effect unless you add them to the service’s environment yourself (for example with a Compose override file):

Variable Default Description
PLANE_MAX_BUNDLE_BYTES 134217728 (128 MiB) Maximum upload size of a bundle.
PLANE_MIGRATE_ON_BOOT 1 Set to 0 to skip running database migrations at start.
PLANE_LOG_RETENTION_DAYS 7 Log retention (maximum 365).
PLANE_OPS_RETENTION_DAYS 30 Operations history retention (maximum 3650).
PLANE_METRICS_RETENTION_DAYS 14 Metrics retention (maximum 365).
PLANE_ASSET_RETENTION_DAYS 7 Retention of unreferenced assets (maximum 3650).
PLANE_PUBLICATION_KEEP 20 Publications kept per worker (maximum 10000).
PLANE_RETENTION_SWEEP_MS 21600000 Interval of the retention sweep; 0 or at least 60000.
Variable Default Description
PLANE_URL http://plane:8787 Internal plane address. Set by compose.
PLANE_ADMIN_TOKEN_FILE /run/secrets/plane_admin_token Token the console uses to call the plane.
CONSOLE_AUTH_PASSWORD_FILE /run/secrets/console_auth_password Console login password. The user name is admin.
OPENFLARE_UPDATER_URL http://updater:8790 Updater address, used by the upgrade feature.
OPENFLARE_UPDATER_TOKEN empty Token for the updater, passed as an environment variable.
PORT 8788 Listen port. Set by compose.
Variable Default Description
VRT_CELL_ID local Identifier of the cell created in the plane.
VRT_TRUSTED_CIDR 172.31.42.250/32 Address range treated as the trusted proxy (the default Traefik address).
OPENFLARE_CLOUDFLARE_EDGE_MODE dns-only dns-only, proxied or mixed. Controls whether Cloudflare’s proxy sits in front of the edge.
OPENFLARE_TRAEFIK_TRUSTED_IPS empty Cloudflare address ranges Traefik trusts for forwarded headers. Must be empty in dns-only and set in proxied or mixed.
VRT_R2_BUCKET vrt-r2 Name of the object-storage bucket.
Variable Default Description
VRT_CACHE_PURGE_TOKEN required Token authorising cache purge calls.
VRT_CACHE_UPPER_URL empty Optional upstream cache URL for the edge host.
VRT_KVROCKS_URL redis://:${REDIS_PASSWORD}@redis:6379 Key-value store URL used by the controller and provider.
VRT_R2_BINDING_ACCESS_KEY required Access key given to workers’ object-storage bindings.
VRT_R2_BINDING_SECRET_KEY required Secret key for the same.
Variable Required Description
VRT_R2_ACCESS_KEY yes Root access key of the storage service.
VRT_R2_SECRET_KEY yes Root secret key of the storage service.
VRT_R2_BUCKET no (vrt-r2) Bucket created at start-up.
S3_IMAGE no Image override.

The two VRT_R2_BINDING_* keys are a separate, restricted identity created by silo-init. Keep them different from the root keys.

These apply to the tls profile and are written by the installer.

Variable Description
OPENFLARE_TRAEFIK_STATIC_CONFIG Host path of the rendered Traefik static config.
OPENFLARE_TRAEFIK_DYNAMIC_DIR Host directory of the rendered routes and certificates configuration.
OPENFLARE_BASE_DOMAIN Base domain.
OPENFLARE_WORKER_BASE_DOMAIN Worker base domain (same value as WORKERS_DOMAIN).
OPENFLARE_CONSOLE_HOST, CONSOLE_HOST Console hostname (same value in both keys).
OPENFLARE_API_HOST, PLANE_API_HOST Optional API hostname.
OPENFLARE_PUBLIC_IPV4 Public IPv4 address detected or supplied.
OPENFLARE_ACME_EMAIL, VRT_TLS_EMAIL Certificate contact address.
OPENFLARE_ACME_CA_SERVER ACME directory URL.
OPENFLARE_ACME_CA_CERTIFICATES, OPENFLARE_ACME_CA_SERVER_NAME Optional, for a private ACME server.
TRAEFIK_LOG_LEVEL DEBUG, INFO, WARN or ERROR.
OPENFLARE_CREATE_DNS_RECORDS Whether the installer may create the wildcard record.
CF_ZONE_API_TOKEN_FILE, CF_DNS_API_TOKEN_FILE In-container paths of the Cloudflare token files (/run/secrets/...).

Details on certificates and DNS are on the TLS certificates and DNS and Cloudflare pages.

Also written by the installer: OPENFLARE_INSTALL_DIR, OPENFLARE_ENV_FILE, OPENFLARE_ENABLE_UPDATER and OPENFLARE_ENABLE_GIT_DEPLOY. These record the installation paths and your choices so that --reconfigure can read them back. See Installer options.

Variable Default Description
OPENFLARE_UPDATER_TOKEN required with the update profile Shared token between console and updater. Delivered to the updater as a file.
UPDATER_PORT 8790 Listen port inside the network. Not published.
OPENFLARE_REGISTRY see global table Registry the updater pulls from.
OPENFLARE_REPO_DIR /openflare Mount point of the compose directory in the container.
OPENFLARE_STATE_DIR /state State directory (volume updater-state).
OPENFLARE_ENV_FILE /var/lib/openflare/.env Env file the updater edits.
OPENFLARE_CONFIG_ROOT from .env Config root, bind-mounted at the same absolute path.

The updater changes only the OPENFLARE_IMAGE_TAG key, atomically. Because of that, the env file must be reachable through a directory bind mount. See Upgrades.

Variable Default Description
OPENFLARE_GITHUB_APP_ID required Numeric GitHub App ID.
OPENFLARE_GITHUB_WEBHOOK_HOST hooks.<base-domain> Hostname receiving GitHub webhooks.
GITHUB_APP_PRIVATE_KEY_FILE /run/secrets/github_app_private_key Private key file.
GIT_RUNNER_TOKEN_FILE /run/secrets/git_runner_token Token for talking to the plane.
GIT_RUNNER_ID all-in-one Name of this runner.
GIT_RUNNER_WORKSPACE_ROOT /var/lib/openflare-gitrunner/workspace Build checkout directory. Mounted from the same path on the host (OPENFLARE_GIT_RUNNER_WORKSPACE_SOURCE).
GIT_BUILDER_EGRESS internal internal or bridge.
GIT_BUILDER_CPUS 1 CPU limit per build.
GIT_BUILDER_MEMORY 512m Memory limit per build.
GIT_BUILDER_PIDS_LIMIT 128 Process limit per build.
GIT_BUILDER_TIMEOUT_MS 600000 Build timeout.
GIT_RUNNER_VERIFY_PROBE public public or off.
GIT_RUNNER_COMMIT_STATUS 1 Whether commit status is reported back to GitHub.
GIT_RUNNER_CATALOG_PORT 8791 Internal catalog port.
CONSOLE_BASE_URL https://<console-host> Link target used in status reports.

The runner container itself is capped at 1 CPU, 512 MB of memory and 256 processes. Build containers are separate and use the GIT_BUILDER_* limits. See Git push deploy.