Deployment
Start and stop the supplied Docker stack deliberately. Then review credentials, network exposure, and persistence before considering a shared deployment.
Before you start
Section titled “Before you start”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.
1. Validate the configuration
Section titled “1. Validate the configuration”Create the required environment files without overwriting existing ones:
test -f frontend/.env || cp frontend/.env.example frontend/.envtest -f backend/.env || touch backend/.envdocker compose -f docker/docker-compose.app.yml --project-directory . config --quietThe 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.
2. Run in the background
Section titled “2. Run in the background”make docker-run-dev-detachedThis builds locally and recreates app containers. The named PostgreSQL volume is retained. To choose different host ports, pass them to the same command:
APP_PORT=8090 MCP_HTTP_PORT=8182 make docker-run-dev-detachedUse 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.
3. Verify the running services
Section titled “3. Verify the running services”For the default ports:
docker compose -f docker/docker-compose.app.yml --project-directory . pscurl --fail --show-error http://localhost:8080/api/healthcurl --fail --show-error http://localhost:8080/trading/healthExpect 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:
docker compose -f docker/docker-compose.app.yml --project-directory . logs --tail=100Use Troubleshooting to narrow the failure before resetting anything. Redact credentials and session tokens before sharing logs.
4. Stop or update
Section titled “4. Stop or update”make docker-stop-devTo 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.
Before exposing the application
Section titled “Before exposing the application”- 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=falsedisables 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.