feat(compose): opt-in external-Postgres override

Adds `docker-compose.external-db.yml` so teams can point the stack at a
managed Postgres (RDS, Cloud SQL, etc.) without forking the base compose
file. Disables the bundled `db` service via an unreachable `profiles`
label and replaces `depends_on` / `DATABASE_URL` on `migrator` and `app`
with `!override`-tagged blocks that read `DATABASE_URL` straight from
`.env`. Default `docker compose up -d` flow is unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-18 09:34:23 -07:00
co-authored by Claude Opus 4.7
parent f769daa48a
commit 93b127f112
3 changed files with 129 additions and 0 deletions
+4
View File
@@ -47,6 +47,10 @@ POSTGRES_DB=memory
# if you point at an external Postgres.
# DATABASE_URL=postgres://memory:...@db:5432/memory
# When using docker-compose.external-db.yml, set DATABASE_URL explicitly.
# Example for AWS RDS Postgres with SSL:
# DATABASE_URL=postgres://memory:STRONG_PASSWORD@your-rds.region.rds.amazonaws.com:5432/memory?sslmode=require
# -----------------------------------------------------------------------------
# Embedder sidecar. Default points at the in-compose service.
# -----------------------------------------------------------------------------