version: "3.9" services: postgres: image: postgres:15 restart: unless-stopped environment: POSTGRES_USER: beatmatchr POSTGRES_PASSWORD: beatmatchr POSTGRES_DB: beatmatchr ports: - "5432:5432" volumes: - postgres-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U beatmatchr"] interval: 10s timeout: 5s retries: 5 redis: image: redis:7 restart: unless-stopped ports: - "6379:6379" volumes: - redis-data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 volumes: postgres-data: redis-data: