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