fix: remove unnecessary host port mappings from dev database containers
Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Has been cancelled
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:
@@ -3,8 +3,6 @@ services:
|
|||||||
postgres:
|
postgres:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
container_name: portfolio_postgres_dev
|
container_name: portfolio_postgres_dev
|
||||||
ports:
|
|
||||||
- "5433:5432"
|
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: portfolio_dev
|
POSTGRES_DB: portfolio_dev
|
||||||
POSTGRES_USER: portfolio_user
|
POSTGRES_USER: portfolio_user
|
||||||
@@ -26,8 +24,6 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
container_name: portfolio_redis_dev
|
container_name: portfolio_redis_dev
|
||||||
ports:
|
|
||||||
- "6380:6379"
|
|
||||||
volumes:
|
volumes:
|
||||||
- redis_dev_data:/data
|
- redis_dev_data:/data
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user