name: zeroclaw-docker-guide
services:
  zeroclaw:
    image: ghcr.io/zeroclaw-labs/zeroclaw:v0.8.5-debian@sha256:1876f4cfc85d1fd3f418e0607fc9207ef6525113e985092ac09b8dcd179df05e
    restart: unless-stopped
    ports:
      - "127.0.0.1:42617:42617"
    environment:
      ZEROCLAW_gateway__host: "0.0.0.0"
      ZEROCLAW_gateway__port: "42617"
      ZEROCLAW_gateway__allow_public_bind: "true"
      ZEROCLAW_gateway__require_pairing: "true"
    volumes:
      - zeroclaw-data:/zeroclaw-data
    extra_hosts:
      - "host.docker.internal:host-gateway"
    healthcheck:
      test: ["CMD", "curl", "--fail", "--silent", "http://127.0.0.1:42617/health"]
      interval: 15s
      timeout: 5s
      retries: 5
      start_period: 30s
volumes:
  zeroclaw-data:
