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