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