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:
@@ -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.
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user