• Vy Nguyễn Minh Khang's avatar
    feat(docker): split postgres into main + backup services · 7fe848d5
    Vy Nguyễn Minh Khang authored
    Phase 0 (PLANS.md section 2) calls for two Postgres instances:
    - postgres-main on host port 5432 — the primary read/write target
    - postgres-backup on host port 5433 — used by MultiPoolService in
      Phase 3 for read-only fallback and HA failover
    
    The legacy single-postgres service and its postgres_data volume are
    renamed so existing local volumes do not collide with the new layout.
    Operators with a pre-existing postgres_data volume from earlier work
    can rename it manually with `docker volume rename` before pulling.
    
    Depends on feat/env-fix-port-credentials for the DB_READ_* env block
    that the backup service consumes. app-dev / app-staging / app-prod
    profiles' depends_on entries are updated to point at postgres-main.
    docker compose config validates clean.
    Co-authored-by: 's avatarCursor <cursoragent@cursor.com>
    7fe848d5
Name
Last commit
Last update
.husky Loading commit data...
config Loading commit data...
docs Loading commit data...
infrastructure Loading commit data...
lib Loading commit data...
scripts Loading commit data...
sql Loading commit data...
src Loading commit data...
tests Loading commit data...
.dockerignore Loading commit data...
.env.example Loading commit data...
.eslintrc.js Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.prettierignore Loading commit data...
.prettierrc Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
Dockerfile Loading commit data...
PLANS.md Loading commit data...
PROGRESS.md Loading commit data...
README.md Loading commit data...
RUN.md Loading commit data...
docker-compose.ha.yml Loading commit data...
docker-compose.yml Loading commit data...
jest.config.ts Loading commit data...
nodemon.json Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
pnpm-lock.yaml Loading commit data...
test-login.json Loading commit data...
tsconfig.json Loading commit data...
tsconfig.test.json Loading commit data...