services: db: image: 'postgres:17.2-alpine' restart: on-failure:5 container_name: db ports: - "5432:5432" environment: POSTGRES_DB: "stirling_pdf" POSTGRES_USER: "admin" POSTGRES_PASSWORD: "stirling" healthcheck: test: [ "CMD-SHELL", "pg_isready -U admin stirling_pdf" ] interval: 1s timeout: 5s retries: 10 volumes: - ./stirling/latest/data:/pgdata