fix(deploy): add DATABASE_URL and openbrain network to orchestrator + synapse #745
Reference in New Issue
Block a user
Delete Branch "fix/deploy-missing-env-and-networks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 topostgreshostname which does not exist; correct hostname isopenbrain_brain-db.Fixes
DATABASE_URLenv var to orchestrator serviceopenbrain_brain-internalnetwork to orchestrator (needed to reach brain-db)openbrain_brain-internalnetwork to synapse (needed to reach brain-db)Result
Both services now running 1/1 after live
docker service updateconfirmed fixes.