Skip to main content

Best fit

  • Single-host setups.
  • Teams that want Docker-based local and production parity.
  • Operators comfortable managing environment files and redeploying containers.

Prepare the environment

Run these commands from the frontend repository root, after filling .env as described in Manual Installation Overview. For the local-postgres profile, set the database credentials and point the application at the Compose service name:
Use the same password in both values and URL-encode special characters in POSTGRES_URL. The hostname is postgres inside the container, not localhost. This profile starts PostgreSQL only; configure S3-compatible asset storage separately. The supplied PostgreSQL image does not include the database HTTP scheduler, so configure Scheduled Jobs.

Local runtime

Use infra/docker/docker-compose.yml:
If you also want a local Postgres container:

Production runtime

Use infra/docker/docker-compose.production.yml. Supabase mode:
Postgres + S3 mode with local Postgres:

Required runtime values

After containers are up

Run database migrations:
If you are using the local Postgres profile, wait for the database container to become healthy first. Use infra/docker/docker-compose.yml in the migration command when running the local configuration. The production web container may be unhealthy until migrations finish. Caddy waits for web to become healthy; if the initial up command reports a dependency failure, run the migration against the running web container, then rerun up -d.

Verify the deployment

Replace the example URL with your SITE_URL. Confirm that web is healthy, Caddy is serving HTTPS, and the admin wallet can sign in before sending traffic to the host.

Common operations

For a full VPS walkthrough using Docker Compose with domain and TLS setup, see VPS.