feat(db): add bizgaze-postgres service to compose (engine cutover infra)
Adds a dedicated Postgres 16 service (container bizgaze-postgres, own named volume bizgaze_pg_data, healthcheck) on the shared NPM network. The app depends_on it healthy. Inert until DB_BACKEND=pg is set in .env — default stays SQLite, so this deploy changes nothing functionally; it just makes the engine available. Documented POSTGRES_PASSWORD / DATABASE_URL / DB_BACKEND in .env.example. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -29,3 +29,10 @@ TURN_CREDENTIAL=
|
||||
# LIVEKIT_URL=wss://livekit.bizgaze.com
|
||||
# LIVEKIT_API_KEY=
|
||||
# LIVEKIT_API_SECRET=
|
||||
|
||||
# Optional: PostgreSQL data store. Leave unset to use the built-in SQLite file (DB_PATH). To move to
|
||||
# Postgres: set POSTGRES_PASSWORD (used by the bizgaze-postgres container AND the URL below), then set
|
||||
# DATABASE_URL + DB_BACKEND=pg after running db/migrate-sqlite-to-pg.js. See db/schema.pg.sql.
|
||||
# POSTGRES_PASSWORD=
|
||||
# DATABASE_URL=postgres://bizgaze:PASSWORD@bizgaze-postgres:5432/bizgaze
|
||||
# DB_BACKEND=pg
|
||||
|
||||
Reference in New Issue
Block a user