services: db: image: postgres:16-alpine restart: unless-stopped environment: POSTGRES_DB: autocensup POSTGRES_USER: autocensup POSTGRES_PASSWORD: autocensup ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U autocensup -d autocensup"] interval: 10s timeout: 5s retries: 5 valkey: image: valkey/valkey:8-alpine restart: unless-stopped ports: - "6379:6379" volumes: - valkey_data:/data healthcheck: test: ["CMD", "valkey-cli", "ping"] interval: 10s timeout: 5s retries: 5 volumes: postgres_data: valkey_data: