Skip to main content

Operating Apiome

This page is the starting point for the people who run an Apiome installation rather than use it: how the services fit together, where each one is configured, and the runbooks for deploying, backing up and triaging. The screens operators use day to day — the admin console, the data browser and migrations — have their own pages in this group.

The stack​

docker compose up from the repository root runs the back end; the web app (apiome-ui) runs beside it (yarn dev in development, its own image in production).

ServiceWhat it isHost port (default)
postgresThe database every service shares5432 (POSTGRES_PUBLISH_PORT)
migrateApplies the apiome-db migrations, then exits—
seedLoads the development seed data, then exits (never in production)—
restapiome-rest, the REST API8000 (APIOME_REST_HTTP_PORT)
mcpapiome-mcp, the MCP server8765 (APIOME_MCP_HTTP_PORT)
mockapiome-mock, the mock runtime8775 (APIOME_MOCK_HTTP_PORT)

Production applies docker-compose.prod.yml on top of docker-compose.yml: it adds caddy (TLS from Let's Encrypt, the only service with host ports — 80 and 443), backup (encrypted scheduled backups) and the Studio image, and keeps seed out of up.

To try Apiome on one machine, follow Run Apiome locally.

Environment reference​

Every service reads its settings from environment variables. Each workspace ships an annotated .env.example — copy it to .env and change what you need:

FileConfigures
docker-compose.env.exampleThe Compose stack: database credentials, host ports, shared tokens
docker-compose.prod.env.exampleProduction: domains, TLS, backup key, fail-closed secrets
apiome-ui/.env.exampleThe web app: database, auth secret, sign-in providers, the admin console password
apiome-rest/.env.exampleThe REST API
apiome-mcp/.env.exampleThe MCP server
apiome-mock/.env.exampleThe mock runtime
apiome-db/.env.exampleMigrations
apiome-cli/.env.exampleThe command-line client

The admin console's own settings — ADMIN_PASSWORD and ADMIN_SESSION_SECRET — are described on The admin console.

Runbooks​

RunbookUse it to
Production deploymentPromote the Compose stack to an HTTPS deployment with gated migrations and a rollback
Backup and disaster recoveryTake, verify and restore backups, and run DR drills
Private beta triageTriage feedback and incidents from beta and dogfood users

The operator screens​

These screens predate the Hive redesign; each page says so, and the redesign is tracked in #5272.

Where next​