services: postgres: image: postgres:18-alpine container_name: cafe-postgres-dev ports: - "5432:5432" environment: POSTGRES_DB: cafe_dev POSTGRES_USER: cafe_dev POSTGRES_PASSWORD: dev_password volumes: - postgres_dev_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U cafe_dev"] interval: 5s timeout: 3s retries: 5 volumes: postgres_dev_data: