fix(deploy): add DATABASE_URL and openbrain network to orchestrator + synapse #745

Merged
jason.woltje merged 1 commits from fix/deploy-missing-env-and-networks into main 2026-03-08 15:51:23 +00:00
Owner

Problem

Two services were crashing on every deploy:

Orchestrator: PrismaClientInitializationError: DATABASE_URL not found — env var was never added to compose file when Prisma was integrated in MS23.

Synapse: could not translate host name "postgres" — homeserver.yaml pointed to postgres hostname which does not exist; correct hostname is openbrain_brain-db.

Fixes

  • Add DATABASE_URL env var to orchestrator service
  • Add openbrain_brain-internal network to orchestrator (needed to reach brain-db)
  • Add openbrain_brain-internal network to synapse (needed to reach brain-db)

Note: /opt/mosaic/synapse/homeserver.yaml was also patched directly on the server (host: postgreshost: openbrain_brain-db).

Result

Both services now running 1/1 after live docker service update confirmed fixes.

## Problem Two services were crashing on every deploy: **Orchestrator:** `PrismaClientInitializationError: DATABASE_URL not found` — env var was never added to compose file when Prisma was integrated in MS23. **Synapse:** `could not translate host name "postgres"` — homeserver.yaml pointed to `postgres` hostname which does not exist; correct hostname is `openbrain_brain-db`. ## Fixes - Add `DATABASE_URL` env var to orchestrator service - Add `openbrain_brain-internal` network to orchestrator (needed to reach brain-db) - Add `openbrain_brain-internal` network to synapse (needed to reach brain-db) > Note: `/opt/mosaic/synapse/homeserver.yaml` was also patched directly on the server (`host: postgres` → `host: openbrain_brain-db`). ## Result Both services now running 1/1 after live `docker service update` confirmed fixes.
jason.woltje added 1 commit 2026-03-08 15:37:05 +00:00
fix(deploy): add DATABASE_URL and openbrain network to orchestrator and synapse
All checks were successful
ci/woodpecker/push/ci Infra-only change: no app code affected, CI not required
e3ef9e3827
Orchestrator was crashing with PrismaClientInitializationError because DATABASE_URL
was never added to docker-compose.swarm.portainer.yml when Prisma was integrated.
Synapse was failing because homeserver.yaml pointed to 'postgres' hostname instead
of the actual openbrain_brain-db service.

Changes:
- Add DATABASE_URL env var to orchestrator service
- Add openbrain_brain-internal network to orchestrator service
- Add openbrain_brain-internal network to synapse service

Note: homeserver.yaml /opt/mosaic/synapse/homeserver.yaml was also patched
directly on the server (host: postgres → host: openbrain_brain-db).
jason.woltje merged commit ad9921107c into main 2026-03-08 15:51:23 +00:00
Sign in to join this conversation.