chore: Update Docker Compose configuration for PostgreSQL security and initialization
All checks were successful
Dev Deployment (Zero Downtime) / deploy-dev (push) Successful in 14m28s
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:
@@ -7,10 +7,11 @@ services:
|
||||
POSTGRES_DB: portfolio_dev
|
||||
POSTGRES_USER: portfolio_user
|
||||
POSTGRES_PASSWORD: portfolio_dev_pass
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
# POSTGRES_HOST_AUTH_METHOD removed - using default password authentication (more secure)
|
||||
volumes:
|
||||
- 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:
|
||||
- portfolio_dev
|
||||
healthcheck:
|
||||
|
||||
Reference in New Issue
Block a user