Skip to content

Manual Docker Compose installation

Upgrade Frameleaf with Docker Compose Watch on YouTube

Prefer to manage the containers yourself? This guide takes you from the release files to your first sign-in in five steps. For a guided setup with updates and recovery built in, use Frameleaf Manager.

Download docker-compose.yml and example.env from the same published Frameleaf release, and use the database image already specified in that file.

In a new installation folder, download both files from the latest photo application release:

Terminal window
mkdir frameleaf-app
cd frameleaf-app
curl -fL -o docker-compose.yml https://github.com/Frameleaf/frameleaf-app/releases/latest/download/docker-compose.yml
curl -fL -o .env https://github.com/Frameleaf/frameleaf-app/releases/latest/download/example.env

The same release has SHA256SUMS to check the downloads against, docker-compose.rootless.yml for containers that run as a non-root user, and the optional hwaccel.ml.yml and hwaccel.transcoding.yml helpers for a graphics card. Manager’s own releases are listed separately and don’t supply these files.

For an upgrade, preserve your current .env and follow Upgrading instead.

Edit .env before starting anything:

UPLOAD_LOCATION=/srv/frameleaf/library
DB_DATA_LOCATION=/srv/frameleaf/postgres19
TZ=America/Edmonton
FRAMELEAF_VERSION=latest
DB_PASSWORD=<your-random-alphanumeric-password>
DB_USERNAME=postgres
DB_DATABASE_NAME=frameleaf

Replace the example storage paths and database password. FRAMELEAF_VERSION=latest selects the current application and machine learning images. Choose a long random database password containing letters and numbers, as required by the release example. The Compose file supplies the compatible database image, so your images always come from one matching release and there’s no digest to copy.

  • UPLOAD_LOCATION is the host folder containing originals and generated files. Allow room for previews, transcoded video and backups.
  • DB_DATA_LOCATION is a new folder on local disk, preferably an SSD. Network shares are not supported for PostgreSQL.
  • The PostgreSQL parent folder is mounted at /var/lib/postgresql. Retain the versioned database directory inside it.
  • DB_DATABASE_NAME=frameleaf is the current example default. Preserve the configured name when restoring an existing Frameleaf installation.

The release starts frameleaf_server, frameleaf_postgres and frameleaf_machine_learning, plus a small network discovery helper that lets the phone apps find the server on your Wi-Fi. Background jobs use PostgreSQL; Redis and Valkey are not required. The machine learning container also runs the worker that Studio uses in the browser, so there’s nothing extra to set up for it.

The server is published on ports 2283 and 2443. If another service already uses one, set FRAMELEAF_HOST_PORT or FRAMELEAF_HOST_HTTPS_PORT in .env. Because the container names are fixed, one Docker host runs one manual installation; for several libraries on one server, use Manager.

Most settings belong in the web app after setup. See Environment variables for host settings, database connections, machine learning, setup, logging and worker controls.

Compose reads .env for substitutions and passes its variables to the server. The machine learning container doesn’t receive .env, so the server’s passwords stay out of it: put machine learning settings in an optional .env.ml file next to .env. After changing either file, recreate containers with docker compose up -d; a restart alone doesn’t reload their environment.

For other local changes, add a docker-compose.override.yml next to the release file. Compose merges it automatically, and it survives when you replace docker-compose.yml on the next upgrade.

For acceleration, the optional hwaccel.ml.yml and hwaccel.transcoding.yml release helpers supply GPU device mappings and runtime settings. Follow machine learning acceleration or video transcoding setup. The video guide also includes an inline Quick Sync option that does not need a helper download. Tip: get the CPU installation running first, then add acceleration.

Terminal window
docker compose config --images
docker compose up -d
docker compose ps
docker logs frameleaf_server

The first start takes a little while to download images and prepare the database. If a service fails, its logs tell you why; check them before changing storage paths or recreating data.

Open http://<server-ip>:2283 from your local network. A new server opens straight on setup, where you create a local administrator with a password of at least 8 characters. There’s no setup code. Setup only works from your home network and only until the server has an administrator, so do it soon after installing. Finish First steps, then configure a backup.

  • Use docker compose with a space, provided by Compose v2.
  • If the phone apps don’t find the server by themselves, type its address in the app. Discovery needs Bonjour (UDP 5353) on the same network, and isn’t included with the rootless Compose file.
  • For database ownership or mount errors, check that the database folder is on a supported local filesystem and writable by the database container.
  • A new empty library after changing folders usually means a different host path was mounted. Stop and check the original paths before uploading more files.
  • Keep docker compose down --volumes away from a library you want to keep: it removes volumes.

See Troubleshooting for logs and recovery checks.