Skip to content

Docker Compose

The repo ships a docker-compose.yml that runs the full stack — Postgres, API, click router, and portal — on one box.

Requirements

  • Docker 24+
  • 2GB RAM minimum (4GB+ recommended for production)
  • A domain, ideally with TLS terminated at a reverse proxy in front

Start

Terminal window
git clone https://github.com/getcoherence/openpartner.git
cd openpartner
cp .env.example .env
# edit .env — at minimum set SECRETS_ENCRYPTION_KEY
docker compose up -d

The first request to the portal triggers the install wizard. After that, all configuration (program name, mail transport, attribution model) lives in the admin UI.

Updating

Terminal window
git pull
docker compose pull
docker compose up -d

Migrations run automatically on container start.

Production hardening

Beyond the dev compose:

  • Run Postgres on a managed service or a separate host with backups (pg_dump daily minimum).
  • Put the router and portal behind a reverse proxy (Caddy, nginx, Traefik) with TLS.
  • Set COOKIE_DOMAIN to your apex so the first-party cookie scopes correctly.
  • Rotate SECRETS_ENCRYPTION_KEY only with a planned re-encrypt of stored secrets.

See the environment reference for all settings.