services:
  kammergut:
    build:
      context: .
      dockerfile: Dockerfile
    # No `image:` field on purpose — Portainer's `docker compose pull`
    # step would otherwise try to fetch this name from a registry and
    # fail with "pull access denied" since the image is built locally.
    # Compose builds from `build:` during `up`.
    container_name: kammergut
    restart: unless-stopped
    ports:
      - "4422:80"
    healthcheck:
      test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1/"]
      interval: 30s
      timeout: 3s
      retries: 3
      start_period: 5s
