services:
  clan-consent-adapter:
    build:
      context: ./services/clan-consent-adapter
    container_name: clan-consent-adapter
    restart: unless-stopped
    environment:
      CLAN_CONSENT_DB_PATH: /data/clan_consent.sqlite
      CLAN_ADAPTER_API_KEY: ${CLAN_ADAPTER_API_KEY:-}
    volumes:
      - clan-consent-data:/data
    ports:
      - "8111:8111"
    healthcheck:
      test: ["CMD-SHELL", "wget -qO- http://localhost:8111/health >/dev/null 2>&1 || exit 1"]
      interval: 15s
      timeout: 5s
      retries: 5

  clan-visibility-guard:
    build:
      context: ./services/clan-visibility-guard
    container_name: clan-visibility-guard
    restart: unless-stopped
    ports:
      - "8112:8112"
    healthcheck:
      test: ["CMD-SHELL", "wget -qO- http://localhost:8112/health >/dev/null 2>&1 || exit 1"]
      interval: 15s
      timeout: 5s
      retries: 5

volumes:
  clan-consent-data:
