- Add .github/workflows/docker.yml for automated Docker builds - Publishes to ghcr.io/theonlyhennygod/zeroclaw - Builds on push to main and tags (v*) - Multi-platform support (linux/amd64, linux/arm64) - Update docker-compose.yml to use GHCR image Part of #45
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
# ZeroClaw Docker Compose Example
|
|
#
|
|
# Quick start:
|
|
# 1. Copy this file and set your API key
|
|
# 2. Run: docker-compose up -d
|
|
# 3. Access gateway at http://localhost:3000
|
|
#
|
|
# For more info: https://github.com/theonlyhennygod/zeroclaw
|
|
|
|
services:
|
|
zeroclaw:
|
|
image: ghcr.io/theonlyhennygod/zeroclaw:latest
|
|
# Or build locally:
|
|
# build: .
|
|
container_name: zeroclaw
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
# Required: Your LLM provider API key
|
|
- API_KEY=${API_KEY:-}
|
|
# Or use the prefixed version:
|
|
# - ZEROCLAW_API_KEY=${ZEROCLAW_API_KEY:-}
|
|
|
|
# Optional: LLM provider (default: openrouter)
|
|
# Options: openrouter, openai, anthropic, ollama
|
|
- PROVIDER=${PROVIDER:-openrouter}
|
|
|
|
# Optional: Model override
|
|
# - ZEROCLAW_MODEL=anthropic/claude-sonnet-4-20250514
|
|
|
|
volumes:
|
|
# Persist workspace and config
|
|
- zeroclaw-data:/data
|
|
|
|
ports:
|
|
# Gateway API port
|
|
- "3000:3000"
|
|
|
|
# Health check
|
|
healthcheck:
|
|
test: ["CMD", "zeroclaw", "doctor"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
zeroclaw-data:
|