mixedlane.
Browse documentation

MIXEDLANE DOCUMENTATION

Configuration

Configure external PostgreSQL, HTTPS, reverse proxies, email, storage and persistent secrets for self-hosted Mixedlane.

Reviewed against the source ยท 24 November 2026

On this page

Choose one database mode

Deployment Compose file Required database setting
Bundled PostgreSQL 17 docker-compose.db.yml POSTGRES_PASSWORD; internal URL is constructed for you
External PostgreSQL docker-compose.yml DATABASE_URL; create the database and user first

Both files use the same Compose project name. Use only one at a time. For an existing installation, plan any data transfer before switching modes.

External PostgreSQL

Create a database and a database user that can create and alter application tables and the migration schema. Put the provider's connection URL in .env. The example below is a placeholder, not a working credential:

DATABASE_URL=postgresql://mixedlane:ENCODED_PASSWORD@db.example.com:5432/mixedlane?sslmode=verify-full
APP_URL=https://projects.example.com

Use the provider's TLS settings and trusted CA requirements. Percent-encode special characters in the URL's username and password. The database must be reachable from the API container. localhost inside a container means that container; Docker Desktop can use host.docker.internal for a database on its host.

docker compose config --quiet
docker compose up -d --build
docker compose logs --tail=100 api

The default stack does not start a database. Its API runs migrations on startup; make sure the external database is ready. POSTGRES_PASSWORD is unused in this mode.

HTTPS and reverse proxies

Publish the web service, which serves the UI and proxies the API. The API and bundled database remain internal to the split stack. Put your TLS proxy in front of the web port, then configure:

APP_URL=https://projects.example.com
PUBLIC_URL=https://projects.example.com
HOST_PORT=3000
TRUST_PROXY=2

TRUST_PROXY=2 describes an external TLS proxy plus the bundled web proxy. The bundled stack alone defaults to one hop. Set this to your actual topology. APP_URL controls generated links, OAuth/plugin URLs and HTTPS cookie behavior. PUBLIC_URL is the public API origin for GitHub webhooks and is usually the same address.

Forward /api and OAuth discovery under /.well-known; preserve WebSocket upgrades for /api/socket and streaming requests for /api/mcp. After setup, test login, a nested-page refresh, uploads, realtime updates, and an agent connection if you use one. Marketing and demo hostnames are not your self-hosted application origin.

Email delivery

Setting Meaning
MAIL_HOST SMTP host; empty disables delivery and auto-verifies new registrations
MAIL_PORT, MAIL_SSL Typically 465 with true for immediate TLS, or 587 with false for STARTTLS
MAIL_USERNAME, MAIL_PASSWORD Provider's SMTP credentials; supply both or use an allowed unauthenticated relay
MAIL_FROM Sender permitted by your provider, such as Mixedlane <team@example.com>

Use the provider's exact settings. SMTP passwords are used directly, without URL encoding. Test an invitation and a password-reset email. Changing mail settings does not alter existing accounts' verification status. The old SMTP_URL setting is not the current configuration format.

Storage and secrets

The default STORAGE_DRIVER=local stores uploads in the API's persistent /data volume. Docker-generated secrets live under /data/secrets. Back up both application data and those secrets.

For S3-compatible storage, set STORAGE_DRIVER=s3, S3_BUCKET and S3_REGION; add S3_ENDPOINT and S3_FORCE_PATH_STYLE when the provider needs them. Credentials use configured keys or the default AWS credential chain. The optional Compose s3 profile runs MinIO; replace its example credentials before use and follow the repository's bucket setup. Uploads are served through the application's access-controlled API.

You can set JWT_SECRET and SECRET_KEY yourself as 64 hexadecimal characters each instead of Docker generation. Outside Docker, production requires them unless a secrets directory is configured. Do not rotate the encryption key as a casual configuration change: existing encrypted integration credentials depend on it.

Apply configuration changes

Edit .env, then run up -d --build with the same Compose file used for the installation. Verify service health and the affected workflow. Changing POSTGRES_PASSWORD does not update the password inside an existing PostgreSQL data volume; database credential changes need a coordinated database operation.

Source reference

These instructions describe the checked source version. Compare the repository README, environment example and Compose files when deploying a different revision. Report a documentation issue.