FynnCloud AIO (Recommended)
FynnCloud AIO (fynncloud-aio) is the recommended way to self-host FynnCloud on a Linux server. A single lightweight supervisor container reconciles your entire stack from /data/stack.yaml, manages TLS certificates via Caddy, runs optional EuroOffice and LiveKit SFU components, orchestrates sandboxed third-party apps on isolated per-app networks, executes consistent encrypted restic backups, and applies ECDSA P-256 signed atomic updates with automatic health-checked rollback.
Prerequisites
Section titled “Prerequisites”- OS: 64-bit Linux (
amd64orarm64) with Docker Engine 24+ - Hardware: Minimum 2 vCPU / 2 GB RAM for core FynnCloud; add ~1.5 GB RAM if enabling EuroOffice, and ~256 MB RAM if enabling LiveKit SFU
- DNS: An
A/AAAArecord pointing your domain (e.g.cloud.example.com) to the server - Firewall Ports:
- Direct HTTPS mode (built-in Caddy):
80/tcpand443/tcp(plus443/udpfor HTTP/3) - Reverse-proxy mode (
--behind-proxy): only local bind (127.0.0.1:11000by default) - Optional LiveKit SFU (
--enable-livekit):7882/udp(single-port WebRTC UDP mux),7881/tcp(ICE/TCP fallback), and3478/udp(embedded TURN)
- Direct HTTPS mode (built-in Caddy):
Quick Start (setup)
Section titled “Quick Start (setup)”Run the interactive setup wizard (or pass flags for headless automation):
docker run -it --rm \ -v /var/run/docker.sock:/var/run/docker.sock \ -v fynncloud_aio_data:/data \ -v fynncloud_aio_sock:/run/fynncloud-aio \ ghcr.io/fynncloudproject/aio:stable setupFor unattended / CI provisioning, pass flags or FYNNCLOUD_* environment variables:
docker run --rm \ -v /var/run/docker.sock:/var/run/docker.sock \ -v fynncloud_aio_data:/data \ -v fynncloud_aio_sock:/run/fynncloud-aio \ ghcr.io/fynncloudproject/aio:stable setup \ --domain cloud.example.com \ --channel stable \ --enable-office \ --enable-livekit \ --non-interactiveWhen setup completes, AIO starts the persistent fynncloud-aio supervisor container and core stack (fynncloud-postgres, fynncloud-redis, fynncloud-server, fynncloud-web, fynncloud-proxy, plus any enabled optional components) and prints a one-time Setup URL (valid for 30 minutes) to create your first administrator account—or restore directly from an existing backup before creating any users.
CLI Subcommands & Flags
Section titled “CLI Subcommands & Flags”setup — Fresh Installation
Section titled “setup — Fresh Installation”| CLI Flag | Environment Equivalent | Default | Description |
|---|---|---|---|
--domain, -d |
FYNNCLOUD_DOMAIN |
(prompted) | Public domain name (e.g. cloud.example.com or localhost) |
--behind-proxy |
FYNNCLOUD_BEHIND_PROXY |
false |
Skip automatic Caddy TLS; listen over HTTP for an external reverse proxy |
--http-port |
FYNNCLOUD_HTTP_PORT |
80 (Caddy) / 11000 (--behind-proxy) |
Host HTTP port published by fynncloud-proxy |
--bind-address |
FYNNCLOUD_BIND_ADDRESS |
0.0.0.0 (Caddy) / 127.0.0.1 (--behind-proxy) |
Host IP interface to bind |
--channel |
FYNNCLOUD_CHANNEL |
stable |
Signed release channel (stable or beta) |
--enable-office |
FYNNCLOUD_ENABLE_OFFICE |
false |
Deploy EuroOffice document server (~1.5 GB RAM) |
--enable-livekit |
FYNNCLOUD_ENABLE_LIVEKIT |
false |
Deploy LiveKit WebRTC SFU + embedded TURN (~256 MB RAM) |
--non-interactive |
FYNNCLOUD_NON_INTERACTIVE |
false |
Disable interactive TTY prompts (fail if required options are missing) |
migrate — Adopt an Existing Docker Compose Deployment
Section titled “migrate — Adopt an Existing Docker Compose Deployment”Migrate an existing standalone FynnCloud Docker Compose stack into AIO with zero data loss:
docker run -it --rm \ -v /var/run/docker.sock:/var/run/docker.sock \ -v fynncloud_aio_data:/data \ -v fynncloud_aio_sock:/run/fynncloud-aio \ -v /path/to/compose/.env:/migrate/.env:ro \ ghcr.io/fynncloudproject/aio:stable migrate --dry-run| CLI Flag | Description |
|---|---|
--env-file <path> |
Path to legacy Compose .env (defaults to /migrate/.env if mounted) |
--compose-project <name> |
Override auto-detected Docker Compose project prefix |
--domain, -d <host> |
Override auto-detected public domain from APP_FRONTEND_URL |
--caddy |
Switch ingress to AIO’s built-in Caddy HTTPS (80/443) |
--behind-proxy |
Keep using an existing external reverse proxy in front of AIO |
--http-port <port> |
Host HTTP port override |
--bind-address <ip> |
Host bind IP override |
--reuse-volumes |
Mount existing Compose volumes directly in-place instead of copying data (zero extra disk space) |
--use-default-images |
Use AIO’s default images instead of preserving currently running Compose tags |
--dry-run |
Print the full migration plan without stopping containers or modifying files |
--yes, -y |
Skip interactive confirmation prompts |
--force |
Overwrite an existing AIO configuration or non-empty target volumes |
upgrade — CLI Reconcile & Supervisor Self-Swap
Section titled “upgrade — CLI Reconcile & Supervisor Self-Swap”Reconcile the stack or swap the running fynncloud-aio supervisor container from the CLI:
| CLI Flag | Description |
|---|---|
--enable-office |
Enable EuroOffice if not already enabled |
--enable-livekit |
Enable LiveKit SFU if not already enabled |
--no-pull |
Reconcile using already-present local images without pulling |
--handoff-delay <sec> |
Delay in seconds before fynncloud-aio-upgrader swaps the supervisor container |
serve & recovery-kit
Section titled “serve & recovery-kit”serve— Runs the long-lived AIO supervisor daemon (the container’s default entrypoint). Listens exclusively on the Unix domain socket (/run/fynncloud-aio/aio.sock) with zero TCP ports exposed.recovery-kit— Prints the 6-field Recovery Kit JSON directly to stdout from/data/secrets.jsonand/data/stack.yaml(useful whenAIO_ALLOW_SOCKET_RECOVERY_KIT=falsedisables UI export).
Architecture & Security Model
Section titled “Architecture & Security Model”Container & Network Topology
Section titled “Container & Network Topology”AIO creates two core Docker networks plus one dedicated network per installed app:
fynncloud-frontend(bridge) — Connectsfynncloud-proxy(Caddy),fynncloud-web,fynncloud-server, optionalfynncloud-eurooffice, and optionalfynncloud-livekitsignaling (:7880).fynncloud-backend(internal: true) — Strictly air-gapped data plane forfynncloud-postgres(pgvector/pgvector) andfynncloud-redis(RDB persistencesave 60 1). No outbound internet access.fynncloud-app-net-<appId>(per installed app;internal: trueby default) — Every installed third-party app receives its own isolated Docker network connecting only that app container,fynncloud-server, and (if the app requests a Postgres database)fynncloud-postgres. Apps cannot scan or reach each other laterally.
Unix Socket Control Plane & Step-Up Auth
Section titled “Unix Socket Control Plane & Step-Up Auth”fynncloud-server never mounts /var/run/docker.sock. Instead, it communicates with fynncloud-aio over a shared Unix socket (/run/fynncloud-aio/aio.sock) authenticated by HMAC-SHA256 (AIO_HMAC_SECRET stored in /data/secrets.json and mounted read-only as a secret file).
High-impact actions invoked from Administration → System require a short-lived Step-Up verification token (5-minute TTL, scoped to one exact action string and verified via WebAuthn Passkey with user verification, TOTP code, or password fallback only if neither Passkeys nor TOTP are enrolled):
| Step-Up Action String | Protected Operation |
|---|---|
recovery-kit |
Exporting the instance Recovery Kit JSON from Admin UI |
updates:apply |
Applying signed stack updates and supervisor self-updates |
backups:config |
Modifying restic backup schedule, repository, credentials, or retention |
restore |
Restoring the instance from a backup snapshot |
All privileged requests are appended to an immutable audit log inside /data.
/data/stack.yaml Schema Reference
Section titled “/data/stack.yaml Schema Reference”AIO persists desired state to /data/stack.yaml (inside the fynncloud_aio_data volume) and keeps generated credentials separately in /data/secrets.json (mode 0600).
# FynnCloud AIO stack configurationversion: "1.0.0"channel: stabledomain: "cloud.example.com"maintenance_mode: falsemax_body_size_mb: 100
ingress: mode: caddy # "caddy" or "behind-proxy" bind_address: "0.0.0.0" # defaults to "127.0.0.1" in behind-proxy mode http_port: 80 # defaults to 11000 in behind-proxy mode https_port: 443 trusted_proxies: []
components: eurooffice: enabled: false domain: "" # empty => subpath https://<domain>/eurooffice livekit: enabled: false domain: "" # empty => subpath wss://<domain>/livekit udp_port: 7882 tcp_port: 7881 turn_enabled: true turn_udp_port: 3478 external_ip: "" # empty => auto-detect public IP via STUN
apps_allowed_registries: ["ghcr.io"]
backup: enabled: false schedule: "0 3 * * *" target_type: local # "local", "s3", or "sftp" repository: "" retention: keep_daily: 7 keep_weekly: 4 keep_monthly: 6
pinned_images: server: "ghcr.io/fynncloudproject/server@sha256:..." web: "ghcr.io/fynncloudproject/web@sha256:..."
# Present only when reusing existing volumes (e.g. from `migrate --reuse-volumes`)volumes: postgres: "fynncloud_postgres_data" redis: "fynncloud_redis_data" server_storage: "fynncloud_server_storage" eurooffice_data: "fynncloud_onlyoffice_data" eurooffice_log: "fynncloud_onlyoffice_log" eurooffice_lib: "fynncloud_onlyoffice_lib"After manually editing /data/stack.yaml, trigger a reconcile from Administration → System → Reconcile or run fynncloud-aio upgrade --no-pull.
Supervisor Environment Variables
Section titled “Supervisor Environment Variables”These environment variables configure the fynncloud-aio supervisor container itself:
| Variable | Default | Purpose |
|---|---|---|
AIO_DATA_DIR |
/data |
Path for stack.yaml, secrets.json, audit log, and staging files |
AIO_LISTEN_SOCKET (alias AIO_SOCKET_PATH) |
/run/fynncloud-aio/aio.sock |
Unix domain socket path exposed to fynncloud-server |
AIO_DOCKER_SOCKET (alias DOCKER_HOST) |
/var/run/docker.sock |
Docker Engine daemon socket or TCP endpoint |
AIO_SOCKET_GID |
(unset) | Optional GID applied to the Unix socket for non-root server access |
AIO_RELEASE_FEED_URL |
https://releases.fynncloud.ch/aio/v1 |
Base URL for ECDSA P-256 signed release manifests (override for air-gapped mirrors) |
AIO_RELEASE_PUBLIC_KEY_PEM |
(built-in official key) | Custom PEM public key for verifying signed private release feeds |
AIO_ALLOW_CUSTOM_RELEASE_REPOS |
false |
Permit release envelopes referencing container registries outside the official defaults |
AIO_ALLOW_UNSIGNED_SUPERVISOR_UPDATE |
false |
Allow updating the supervisor without a signed feed entry (development only) |
AIO_ALLOW_DOWNGRADE |
false |
Allow applying an older release version than currently installed |
AIO_ALLOW_HOST_LOOPBACK_DEV |
false |
Allow app containers to reach host loopback services during local development |
AIO_ALLOW_WRITABLE_APP_ROOTFS |
false |
Relax read-only root filesystem enforcement on installed app containers |
AIO_APPS_NETWORK_INTERNAL |
true |
Keep per-app Docker networks internal: true (no outbound internet from apps) |
AIO_ALLOW_SOCKET_RECOVERY_KIT |
true |
Set false to block Recovery Kit export over the Admin UI socket (CLI recovery-kit only) |
LOG_LEVEL |
info |
Supervisor log verbosity (debug, info, warning, error) |
For backup schedules, restore drills, Recovery Kits, and atomic update rollback procedures, see Upgrades, Backups & Recovery.