# Local infra only (Postgres + Redis). Use root docker-compose.yml for full stack. # Host ports 5433/6380 avoid clashes with other local stacks on 5432/6379. services: postgres: image: postgres:16-alpine restart: unless-stopped environment: POSTGRES_USER: songs2vid POSTGRES_PASSWORD: songs2vid POSTGRES_DB: songs2vid ports: - "127.0.0.1:5433:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U songs2vid -d songs2vid"] interval: 5s timeout: 5s retries: 10 redis: image: redis:7-alpine restart: unless-stopped ports: - "127.0.0.1:6380:6379" command: ["redis-server", "--appendonly", "yes"] volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 3s retries: 10 volumes: postgres_data: redis_data: