fix: remove unnecessary host port mappings from dev database containers
Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Has been cancelled

Postgres and Redis only need to be reachable via the internal Docker
network (portfolio_dev). Removing host port bindings prevents conflicts
with production or other services and reduces attack surface.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 15:13:16 +01:00
parent 3fd7329dc5
commit d21669ee6d

View File

@@ -3,8 +3,6 @@ services:
postgres:
image: postgres:16-alpine
container_name: portfolio_postgres_dev
ports:
- "5433:5432"
environment:
POSTGRES_DB: portfolio_dev
POSTGRES_USER: portfolio_user
@@ -26,8 +24,6 @@ services:
redis:
image: redis:7-alpine
container_name: portfolio_redis_dev
ports:
- "6380:6379"
volumes:
- redis_dev_data:/data
networks: