version: '3.9' services: postgres: image: postgres:16-alpine environment: POSTGRES_DB: shieldai POSTGRES_USER: shieldai POSTGRES_PASSWORD: shieldai_dev ports: - "5432:5432" volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U shieldai"] interval: 5s timeout: 5s retries: 5 redis: image: redis:7-alpine ports: - "6379:6379" healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 5s retries: 5 volumes: pgdata: