Improve database connection configuration and documentation for SSL
continuous-integration/drone/push Build is passing

Update `docker-compose.yml` and `server/db.ts` to allow dynamic configuration of PostgreSQL SSL connections via the `DATABASE_SSL` environment variable. Add `DOCKER-DATABASE-SSL-GUIDE.md` detailing SSL options and troubleshooting.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ceced2fc-aa46-458d-ba87-ddd4b7bb1518
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/659922a9-0087-461c-90dd-6d9a58b81d4d/ceced2fc-aa46-458d-ba87-ddd4b7bb1518/flNt5I4
This commit is contained in:
paul-nothaft
2025-10-23 18:23:43 +00:00
parent 8d22cc5873
commit ce42a9b984
4 changed files with 316 additions and 7 deletions
+3
View File
@@ -34,6 +34,9 @@ services:
NODE_ENV: production
DATABASE_URL: postgresql://${POSTGRES_USER:-taskflow}:${POSTGRES_PASSWORD:-taskflow_password}@postgres:5432/${POSTGRES_DB:-taskflow}
PORT: 5000
# DATABASE_SSL options: 'true' (SSL with self-signed), 'require' (SSL with valid cert), or unset (no SSL)
# For local postgres container, leave unset. For external PostgreSQL, set as needed.
DATABASE_SSL: ${DATABASE_SSL:-}
ports:
- "${APP_PORT:-5000}:5000"
depends_on: