services: postgres: image: postgres:16-alpine container_name: hss-postgres-dev environment: POSTGRES_DB: hss_home_service POSTGRES_USER: hss POSTGRES_PASSWORD: hss123 ports: - "5433:5432" volumes: - pgdata-dev:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U hss -d hss_home_service"] interval: 5s timeout: 5s retries: 10 redis: image: redis:7-alpine container_name: hss-redis-dev ports: - "6380:6379" command: redis-server --appendonly yes volumes: - redisdata-dev:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 3s retries: 5 volumes: pgdata-dev: redisdata-dev: