gabriel / musehub public
chore docker main #52 / 70

chore(docker): expose Postgres on host port 5434 for local test access

Mirrors the agentception pattern: bind the Postgres container's 5432 to 127.0.0.1:5434 on the host so the local test suite and Alembic CLI can reach the DB without Docker networking tricks.

Port choice: 5432 — reserved for any locally-installed Postgres 5433 — already used by agentception's Postgres container 5434 — free; musehub-specific

Changes: docker-compose.yml — add ports: ["127.0.0.1:5434:5432"] to postgres service Makefile — LOCAL_PG_URL points to localhost:5434; all test targets export DATABASE_URL automatically so 'make test' runs Alembic smoke tests without extra setup .env.example — document the host-side URL and the port rationale

Verified: all 4 Alembic smoke tests pass against local Docker Postgres.

G Gabriel Cardona <gabriel@tellurstori.com> · 6d ago Mar 17, 2026 · d9c13c78 · parent 7923a405
2
files changed
383
files in snapshot
Files Changed 383 in snapshot
~2

0 comments

No comments yet. Be the first to start the discussion.