Skip to content

Docker Compose

Use the standalone Docker Compose deployment from FynnCloud-Infrastructure when you prefer managing containers directly with Compose or integrating into an existing Nginx, Caddy, or Traefik reverse proxy.

Service Container Name Default Image Rootfs Hardening Networks
proxy fynncloud-proxy nginx:1.27-alpine read_only: true + cap_drop: [ALL] fynncloud-frontend
db fynncloud-db pgvector/pgvector:0.8.0-pg16 read_only: true + cap_drop: [ALL] fynncloud-backend, fynncloud-apps-network
redis fynncloud-redis redis:7.4-alpine (--appendonly yes) read_only: true + cap_drop: [ALL] fynncloud-backend
server fynncloud-server ghcr.io/fynncloudproject/server:1.0.0 read_only: true + cap_drop: [ALL] fynncloud-frontend, fynncloud-backend, fynncloud-apps-network
web fynncloud-web ghcr.io/fynncloudproject/web:1.0.0 (SvelteKit Node 24) read_only: true + cap_drop: [ALL] fynncloud-frontend
eurooffice (optional --profile office) fynncloud-eurooffice ghcr.io/euro-office/documentserver:v9.3.8 cap_drop: [ALL] + minimal cap_add, no-new-privileges:true (writable rootfs required by DocumentServer) fynncloud-frontend
  • fynncloud-frontend (bridge) — Exposes the internal Nginx proxy (${PROXY_PORT:-80}:80), web frontend, server HTTP ingress, and optional EuroOffice (${EUROOFFICE_PORT:-8082}:80).
  • fynncloud-backend (internal: true, attachable: false) — Isolates PostgreSQL and Redis with zero outbound internet access.
  • fynncloud-apps-network (bridge) — Shared sandbox network for third-party FynnCloud app containers.

  1. Clone the infrastructure repository:

    Terminal window
    git clone https://github.com/FynnCloudProject/FynnCloud-Infrastructure.git
    cd FynnCloud-Infrastructure
  2. Run the bootstrap helper script:

    Terminal window
    ./scripts/start.sh

    ./scripts/start.sh automatically creates .env (if missing) and generates cryptographically random secrets for DB_PASSWORD, REDIS_PASSWORD, AUTH_JWT_SECRET, SECURITY_ENCRYPTION_KEY, and DOCS_JWT_SECRET, then brings up the stack.

  3. Edit .env to set your public domain and CORS origins before exposing the instance:

    APP_FRONTEND_URL=https://cloud.example.com
    SERVER_CORS_ALLOWED_ORIGINS=https://cloud.example.com
    PROXY_PORT=8080
    SERVER_TRUSTED_PROXIES=127.0.0.1/32,172.16.0.0/12
  4. Apply your changes (add --profile office to include EuroOffice):

    Terminal window
    docker compose up -d
    # Or with EuroOffice document server:
    docker compose --profile office up -d
  5. Place a TLS-terminating reverse proxy in front of 127.0.0.1:8080 (see Reverse Proxy Setup).


Web Frontend (ghcr.io/fynncloudproject/web)

Section titled “Web Frontend (ghcr.io/fynncloudproject/web)”

The web container runs the SvelteKit (adapter-node, Node 24) frontend. It reads the following runtime environment variables (while retaining backward-compatible support for legacy NUXT_PUBLIC_* variables used in older .env files):

Variable Legacy Fallback Purpose
HOST NITRO_HOST Bind interface inside the container (0.0.0.0)
PORT NITRO_PORT Listen port (3000)
ORIGIN PUBLIC_SITE_URL Public origin for SvelteKit CSRF checks (e.g. https://cloud.example.com)
INTERNAL_API_BASE — Internal cluster URL to fynncloud-server for SSR requests (e.g. http://server:8080)
PUBLIC_API_BASE NUXT_PUBLIC_API_BASE Browser-facing API base URL (leave empty when /api is same-origin behind the proxy)
PUBLIC_SITE_URL — Canonical public site URL for Open Graph share metadata
PUBLIC_MAINTENANCE_MODE NUXT_PUBLIC_MAINTENANCE_MODE Show the maintenance page (true / false)
PUBLIC_APPS_REGISTRY_URL — Override the App Store catalog JSON URL

Script Purpose
./scripts/start.sh Generates missing secrets (DB_PASSWORD, REDIS_PASSWORD, AUTH_JWT_SECRET, SECURITY_ENCRYPTION_KEY, DOCS_JWT_SECRET) into .env and starts the stack
./scripts/stop.sh Stops running Compose containers cleanly
./scripts/build-and-push.sh Builds and pushes custom server and web OCI images to your registry

Local Development (docker-compose.dev.yml)

Section titled “Local Development (docker-compose.dev.yml)”

For local development with source builds, a Docker socket proxy for testing FynnCloud apps, and Adminer for inspecting PostgreSQL:

Terminal window
docker compose -f docker-compose.dev.yml up --build