services: postgres: image: postgres:17-alpine environment: POSTGRES_DB: django_db POSTGRES_USER: django_user POSTGRES_PASSWORD: django_password healthcheck: test: ["CMD-SHELL", "pg_isready -U django_user -d django_db"] interval: 5s timeout: 5s retries: 10 redis: image: redis:7-alpine healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 5s retries: 10