Docker deployment overview
OpenFlare ships as a single-host Docker Compose stack, the “all-in-one” deployment. One host runs the whole platform: the control plane (PostgreSQL, the plane API and the console) and one cell (the worker runtime, its controller, its storage services and its KV store). The management API is the plane’s /api/v1, the same surface you get anywhere else OpenFlare runs.
This page helps you pick a deployment mode. The pages it links to give the full steps.
What runs on the host
Section titled “What runs on the host”The Compose project is named openflare-all-in-one and is defined by docker-compose.all-in-one.yml.
| Layer | Services | Always on? |
|---|---|---|
| Control plane | postgres, plane, console |
Yes |
| Cell (worker runtime) | cell-init (one-shot), vrt-host, cell-controller, plane-loopback, vrt-provider, vrt-sql, redis, silo, silo-init (one-shot), worker-dns |
Yes |
| Public TLS edge | traefik |
Only with the tls profile |
| In-panel updater | updater |
Only with the update profile |
| GitHub push deploy | git-runner (plus an ephemeral builder container it launches) |
Only with the gitdeploy profile |
Every service, port, volume and network is described in Services and ports.
Deployment modes
Section titled “Deployment modes”There are two base modes, plus two independent optional features.
Mode 1: loopback (development or trusted network)
Section titled “Mode 1: loopback (development or trusted network)”You run the Compose file without the tls profile. Nothing is exposed publicly and no Traefik container starts. Everything binds to 127.0.0.1 by default:
| Endpoint | Default bind |
|---|---|
| Console | 127.0.0.1:8788 |
| Plane API | 127.0.0.1:8787 |
| Worker ingress | 127.0.0.1:8080 |
No domain, no Cloudflare account and no installer is needed. Worker hostnames use WORKERS_DOMAIN (default workers.local) and are resolved locally; see Local hostnames. You set this mode up by hand, as described in Manual Compose.
Use it to try OpenFlare, develop against it, or run it on a trusted private network.
Mode 2: public TLS (production)
Section titled “Mode 2: public TLS (production)”You run with the tls profile, which adds Traefik on ports 80 and 443. Traefik is a pure file-provider edge: it has no Docker socket and no container-label discovery. All routing is rendered into configuration files on the host before the stack starts.
- Certificates come from Let’s Encrypt by default, issued through Cloudflare DNS-01 challenges.
- The console and, optionally, the API and webhook hostnames get exact certificates.
- A wildcard certificate for
*.<worker-base-domain>covers every one-label worker hostname.
Public TLS requires a domain whose DNS zone is hosted on Cloudflare, plus two scoped Cloudflare API tokens. See DNS and Cloudflare and TLS certificates.
The recommended way to get this mode is the one-click installer, which validates the host, renders the edge configuration, brings the stack up and checks it end to end. You can also assemble it by hand; the Manual Compose page covers that path, including the files that must exist first.
Optional feature: GitHub push deploy (gitdeploy profile)
Section titled “Optional feature: GitHub push deploy (gitdeploy profile)”Adds the git-runner service so that a push to a bound GitHub branch builds and deploys a worker automatically. It needs a GitHub App and an extra webhook hostname (hooks.<base-domain> by default). It is off by default. It is documented in Git push deploy.
Optional feature: in-panel updater (update profile)
Section titled “Optional feature: in-panel updater (update profile)”Adds the updater service, which lets the console check for and apply release upgrades. It also mounts the Docker socket and is off by default. The console itself never touches Docker; it talks to the updater over a dedicated internal network. See Upgrades.
The combinations at a glance
Section titled “The combinations at a glance”| You want | Mode | Profiles | How to set it up |
|---|---|---|---|
| Try it on your laptop | Loopback | none | Manual Compose |
| A production host with a real domain | Public TLS | tls |
One-click install |
| Production plus one-click upgrades from the console | Public TLS | tls, update |
One-click install with --enable-updater |
Production plus deploy on git push |
Public TLS | tls, gitdeploy |
One-click install with --enable-git-deploy |
| Production with both | Public TLS | tls, update, gitdeploy |
One-click install with both flags |
The installer always activates the tls profile. Its two feature flags are documented in Installer options.
Host requirements
Section titled “Host requirements”These are the checks the installer’s preflight enforces. They are good minimums for a manual install too.
| Requirement | Detail |
|---|---|
| Operating system | Linux. Other systems are rejected. |
| CPU architecture | amd64 (x86_64). Release images are published for linux/amd64 only. |
| Privileges | Run as root. With sudo, use sudo -E so that environment variables you set reach the installer. |
| Memory | At least 1 GiB (the installer fails below this). It warns below 2 GiB. |
| Free disk | At least 10 GiB free under the existing parent directory of both the install directory and the config root. |
| Docker | A running, accessible Docker daemon and the Compose v2 plugin, version 2.20 or newer. |
| Ports | 80 and 443 must be free, unless they are held by an earlier openflare-all-in-one Compose project. |
| Firewall | If ufw or firewalld is active, it must clearly allow ports 80 and 443. |
| Outbound HTTPS | github.com, ghcr.io, api.cloudflare.com, your ACME CA (Let’s Encrypt by default), and download.docker.com if you let the installer install Docker. |
| Clock | Within 300 seconds of the time reported by GitHub’s HTTPS Date header. |
| Public IPv4 | The host must own a public, non-private IPv4 address. IPv6 is not supported. |
| Tools | git, curl, openssl, awk, sed, grep, and either perl or python3, plus a system CA bundle. Standard coreutils such as df, tr, cat, cp, mv, chmod, mkdir and find are also checked. |
The installer can install Docker for you, but only on Debian and Ubuntu, and only when you pass --install-docker. Details are on the One-click install page.
What gets installed where
Section titled “What gets installed where”With the one-click installer and its defaults:
| Path | Contents |
|---|---|
/opt/openflare |
The exact release checkout (a git working tree at the release tag). It holds docker-compose.all-in-one.yml, the Traefik templates and the init scripts. Do not edit tracked files here; the installer refuses to continue with local modifications. |
/var/lib/openflare |
The config root: all generated state. Mode 0700. |
/var/lib/openflare/.env |
The authoritative Compose env file, mode 0600. It contains your generated secrets. |
/var/lib/openflare/secrets/ |
File-backed secrets (mode 0700 directory): database_url, the two Cloudflare tokens, and, with GitHub push deploy, the GitHub App key, webhook secret and runner token. |
/var/lib/openflare/config/traefik.yml |
The rendered Traefik static configuration. |
/var/lib/openflare/config/traefik-dynamic/ |
The rendered Traefik routes, edge-routes.yml, plus github-webhook.yml when push deploy is on. |
/var/lib/openflare/acme-ca/ |
Copies of custom ACME CA certificates, only if you supplied any (mode 0700). |
/var/lib/openflare/image-digests.txt |
The digests of the images that were pulled. |
/var/lib/openflare-gitrunner/workspace |
Build workspace for push deploy (mode 0700, root-owned), only when push deploy is on. |
| Docker named volumes | Database, bundles, cell state, KV, object storage and certificates. See Services and ports. |
You can change the install directory, config root and env file location with installer flags. The env file must live inside the config root, and the config root must be outside the release checkout. See Installer options.
The Docker volumes hold your data. Back them up and keep the traefik-acme volume across upgrades; see Backups.
Decision guide
Section titled “Decision guide”Answer these in order.
- Do you only want to evaluate or develop locally? Use loopback mode with Manual Compose.
- Is the host a Linux amd64 machine with a public IPv4 address, and is your domain’s DNS on Cloudflare? If yes, use the one-click installer.
- Is your DNS elsewhere, or do you need something the installer does not do? The public TLS edge in this release uses Cloudflare DNS-01, so a Cloudflare-hosted zone is required in every mode the installer supports. You can still assemble the stack by hand, but the Traefik configuration and the Cloudflare tokens must be in place first; read Manual Compose and TLS certificates.
- Do you want upgrades from the console? Add
--enable-updater. - Do you want GitHub push deploys? Add
--enable-git-deployand prepare a GitHub App first. See Git push deploy. - Running on arm64 (Apple Silicon or ARM servers)? Release images are linux/amd64 only. The installer rejects non-amd64 hosts. For development you can run the images under emulation or build for your own architecture, as described in Manual Compose.
Related pages
Section titled “Related pages”- One-click install: the guided walkthrough.
- Installer options: every flag and environment variable.
- Manual Compose: running the Compose file yourself.
- Configuration: the full
.envreference. - Services and ports: every container, port, volume and network.
- Production checklist and Security before you go live.