services:
  clawfort:
    build: .
    ports:
      - "8000:8000"
    volumes:
      - clawfort-data:/app/data
      - clawfort-images:/app/backend/static/images
    env_file:
      - .env
    environment:
      - PERPLEXITY_API_KEY=${PERPLEXITY_API_KEY}
      - IMAGE_QUALITY=${IMAGE_QUALITY:-85}
      - OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
      - UMAMI_SCRIPT_URL=${UMAMI_SCRIPT_URL:-}
      - UMAMI_WEBSITE_ID=${UMAMI_WEBSITE_ID:-}
      - RETENTION_DAYS=${RETENTION_DAYS:-30}
    restart: unless-stopped

volumes:
  clawfort-data:
  clawfort-images:
