chore: Update Docker Compose configuration for PostgreSQL security and initialization
All checks were successful
Dev Deployment (Zero Downtime) / deploy-dev (push) Successful in 14m28s

- Removed POSTGRES_HOST_AUTH_METHOD for enhanced security, reverting to default password authentication.
- Eliminated init-db.sql mount, as database initialization is now handled via environment variables, with additional grants managed through Prisma migrations if necessary.
This commit is contained in:
2026-01-15 22:38:10 +01:00
parent 019fff1d5b
commit 33f6d47b3e

View File

@@ -7,10 +7,11 @@ services:
POSTGRES_DB: portfolio_dev POSTGRES_DB: portfolio_dev
POSTGRES_USER: portfolio_user POSTGRES_USER: portfolio_user
POSTGRES_PASSWORD: portfolio_dev_pass POSTGRES_PASSWORD: portfolio_dev_pass
POSTGRES_HOST_AUTH_METHOD: trust # POSTGRES_HOST_AUTH_METHOD removed - using default password authentication (more secure)
volumes: volumes:
- postgres_dev_data:/var/lib/postgresql/data - postgres_dev_data:/var/lib/postgresql/data
- ./scripts/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql # init-db.sql mount removed - database is initialized via POSTGRES_DB/POSTGRES_USER
# Additional grants can be done via Prisma migrations if needed
networks: networks:
- portfolio_dev - portfolio_dev
healthcheck: healthcheck: