Skip to content

Deployment

Start and stop the supplied Docker stack deliberately. Then review credentials, network exposure, and persistence before considering a shared deployment.

You need Docker with Compose, GNU Make, and a checkout of the product repository. Commands below run from its root. The current application image targets linux/amd64; it bundles an x64 PostgREST binary. Do not assume a native ARM image is available.

Follow Get started once in the foreground before switching to background operation. Review Configuration and Database & persistence for the files and data involved.

Create the required environment files without overwriting existing ones:

Terminal · product repository
test -f frontend/.env || cp frontend/.env.example frontend/.env
test -f backend/.env || touch backend/.env
docker compose -f docker/docker-compose.app.yml --project-directory . config --quiet

The validation command should exit successfully. It checks Compose configuration, not credential strength or service readiness. Avoid publishing unredacted docker compose config output: it can contain resolved secrets.

Terminal · build and start
make docker-run-dev-detached

This builds locally and recreates app containers. The named PostgreSQL volume is retained. To choose different host ports, pass them to the same command:

Terminal · alternative local ports
APP_PORT=8090 MCP_HTTP_PORT=8182 make docker-run-dev-detached

Use one of these startup commands, not both. With the alternative ports, the UI is at localhost:8090 and MCP at 127.0.0.1:8182.

For the default ports:

Terminal · status and health
docker compose -f docker/docker-compose.app.yml --project-directory . ps
curl --fail --show-error http://localhost:8080/api/health
curl --fail --show-error http://localhost:8080/trading/health

Expect a running app container and successful responses from both health endpoints. Open the workstation in your browser as well: health checks do not prove that exchange connectivity, model credentials, or complete user workflows work.

If a check fails:

Terminal · recent logs
docker compose -f docker/docker-compose.app.yml --project-directory . logs --tail=100

Use Troubleshooting to narrow the failure before resetting anything. Redact credentials and session tokens before sharing logs.

Terminal · stop, retaining data
make docker-stop-dev

To update, back up the database, review the new version’s schema and release notes, then rebuild from the intended source revision with the startup command above. Retaining the volume also retains its schema: startup does not automatically migrate it.

  • Replace development database passwords, PostgREST JWT secret, and session secret. Review Compose’s environment precedence in Configuration.
  • Restrict the UI binding or firewall it appropriately. Place any public service behind deployment-specific HTTPS and access controls.
  • Keep MCP private. Its existing Docker host mapping is loopback-only; MCP_HTTP_ENABLED=false disables the HTTP listener if it is not needed.
  • Configure secure cookies for hosted HTTPS and review the privacy notices.
  • Test backup and recovery on an isolated database before relying on them.

make docker-run-prod selects ports 80 and 81 and runs in the background. Its name does not imply that it replaces these deployment decisions.

For published image channels, see Releasing. The source of this stack is docker/docker-compose.app.yml.