Skip to content

Commit 63584bf

Browse files
committed
commit 8f3c9e2d4e5b6a7c8d9e0f1a2b3c4d5e6f7g
1 parent 80b7e78 commit 63584bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ services:
4141
- DEBUG=${DEBUG:-True}
4242
- SECRET_KEY=${SECRET_KEY:-dev-secret-key-change-in-production}
4343
- NASA_API_KEY=${NASA_API_KEY}
44+
# IMPORTANT: backend/.env is mounted into /app and may define DATABASE_URL (sqlite) for local dev.
45+
# Override it inside Docker so the container uses Postgres.
46+
- DATABASE_URL=postgresql://${DB_USER:-postgres}:${DB_PASSWORD:-postgres}@db:5432/${DB_NAME:-personal_brand_hub}
4447
- DB_NAME=${DB_NAME:-personal_brand_hub}
4548
- DB_USER=${DB_USER:-postgres}
4649
- DB_PASSWORD=${DB_PASSWORD:-postgres}

0 commit comments

Comments
 (0)