Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Has been cancelled
Change dev PostgreSQL host port from 5432 to 5433 and dev Redis from 6379 to 6380 to avoid conflicts with production containers or other services on the host. Internal Docker network ports remain unchanged. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
services:
|
|
# PostgreSQL Database
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: portfolio_postgres_dev
|
|
ports:
|
|
- "5433:5432"
|
|
environment:
|
|
POSTGRES_DB: portfolio_dev
|
|
POSTGRES_USER: portfolio_user
|
|
POSTGRES_PASSWORD: portfolio_dev_pass
|
|
# POSTGRES_HOST_AUTH_METHOD removed - using default password authentication (more secure)
|
|
volumes:
|
|
- postgres_dev_data:/var/lib/postgresql/data
|
|
# 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:
|
|
test: ["CMD-SHELL", "pg_isready -U portfolio_user -d portfolio_dev"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
# Redis for caching
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: portfolio_redis_dev
|
|
ports:
|
|
- "6380:6379"
|
|
volumes:
|
|
- redis_dev_data:/data
|
|
networks:
|
|
- portfolio_dev
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
networks:
|
|
portfolio_dev:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
postgres_dev_data:
|
|
redis_dev_data:
|