Install & upgrade
Orrery ships as a single self-hosted container (ghcr.io/forge-orbit/orrery) backed by PostgreSQL 18. The bundled compose.yaml runs the app on port 8080, stores database state on a private Docker volume (pgdata), and includes an optional Caddy profile for automatic Let’s Encrypt HTTPS.
Requirements:
- Docker Engine with the Compose plugin (
docker compose) - Port
8080free (plus ports80and443if you enable the Caddy TLS profile) - A domain name pointing to your host if teammates’ agents will connect remotely
Install with Docker Compose
Section titled “Install with Docker Compose”-
Fetch the Compose configuration
Terminal window git clone https://github.com/forge-orbit/orrery.gitcd orrerycp .env.example .env -
Configure
.envGenerate your one-time setup secret and 32-byte encryption key:
Terminal window openssl rand -hex 32 # BOOTSTRAP_SECRETopenssl rand -base64 32 # ORRERY_ENCRYPTION_KEYEdit
.envand set the required values:Variable Requirement Purpose POSTGRES_PASSWORDLetters & digits only Embedded in DATABASE_URLfor Postgres 18.BOOTSTRAP_SECRET32+ characters Protects /setupfor creating the first administrator. Remove after setup.ORRERY_ENCRYPTION_KEYBase64 of 32 bytes Encrypts SMTP passwords and webhook signing secrets at rest. Back this up separately. PUBLIC_URLExact public URL e.g. https://orrery.example.com./mcponly accepts requests matching this host.See the complete Environment variables reference for optional knobs like
ORRERY_VERSION,LOG_LEVEL, andORRERY_WEBHOOK_ALLOW_PRIVATE_URLS. -
Pull the GHCR image and start the stack
Terminal window docker compose pulldocker compose up -d(If you intentionally want to build from a local checkout instead, run
docker compose up -d --build.) -
Complete first-run setup and lock
/setupOpen
<PUBLIC_URL>/setup, create the first System administrator usingBOOTSTRAP_SECRET, then removeBOOTSTRAP_SECRETfrom.envand recreate the container:Terminal window docker compose up -d --force-recreate orreryConfirm both probes return HTTP
200:Terminal window curl -fsS http://localhost:8080/healthzcurl -fsS http://localhost:8080/readyz
Automatic HTTPS with Caddy
Section titled “Automatic HTTPS with Caddy”Agents on teammates’ laptops should talk to Orrery over HTTPS. If you don’t already have a reverse proxy, use the built-in Caddy profile:
-
Point DNS for your domain (e.g.
orrery.example.com) at the host and ensure ports80and443are reachable. -
Set both variables in
.env:ORRERY_DOMAIN=orrery.example.comPUBLIC_URL=https://orrery.example.com -
Start Compose with the
tlsprofile:Terminal window docker compose --profile tls pulldocker compose --profile tls up -d
Caddy obtains and renews a Let’s Encrypt certificate automatically using deploy/Caddyfile, proxies traffic to orrery:8080, and persists certificate state in the caddy-data and caddy-config volumes.
If you run your own reverse proxy (Nginx, Traefik, Cloudflare Tunnel, etc.), skip --profile tls, proxy directly to 127.0.0.1:8080, and keep PUBLIC_URL set to the exact external https:// URL.
Upgrading
Section titled “Upgrading”Published images on ghcr.io/forge-orbit/orrery are tagged by exact version (0.1.1), minor stream (0.1), and latest. Pin an exact tag in .env for predictable upgrades:
ORRERY_VERSION=0.1.1Before upgrading, take a verified database backup and record your current ORRERY_VERSION. Then pull and restart only the app container — Orrery runs Drizzle database migrations automatically on startup while preserving the Postgres volume:
docker compose pull orrerydocker compose up -d orrerydocker compose logs -f orreryUseful operational commands
Section titled “Useful operational commands”docker compose ps # container statusdocker compose logs -f orrery # structured JSON server logsdocker compose restart orrery # apply .env changes (use --force-recreate if env changed)Next steps
Section titled “Next steps”- Backup & restore — protect your Postgres data and
ORRERY_ENCRYPTION_KEY. - Connect an agent — wire up Claude Code, Codex CLI, or Cursor.
- Workspaces & permissions — configure SMTP, invite teammates, and set up Shared workspaces.