services: postgres: image: postgres:17-alpine environment: POSTGRES_DB: cms POSTGRES_USER: cms POSTGRES_PASSWORD: cms ports: - "5432:5432" volumes: - cms-postgres-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U cms -d cms"] interval: 5s timeout: 5s retries: 10 volumes: cms-postgres-data: