Docker Deployment
Overview
Section titled “Overview”Docker provides the easiest way to deploy Clawdbot with consistent environments and simple updates.
Quick Start
Section titled “Quick Start”# Pull and rundocker run -d \ --name clawdbot \ -e ANTHROPIC_API_KEY=your_key \ -e TELEGRAM_BOT_TOKEN=your_token \ ghcr.io/polvoazul/clawdbot:latestDocker Compose
Section titled “Docker Compose”Create docker-compose.yml:
version: '3.8'
services: clawdbot: image: ghcr.io/polvoazul/clawdbot:latest container_name: clawdbot restart: unless-stopped env_file: - .env volumes: - ./data:/app/data - ./config:/app/config ports: - "8080:8080" # If using webhooksStart:
docker-compose up -dConfiguration
Section titled “Configuration”Environment Variables
Section titled “Environment Variables”Create .env file:
ANTHROPIC_API_KEY=sk-ant-xxxxxTELEGRAM_ENABLED=trueTELEGRAM_BOT_TOKEN=xxxxxLOG_LEVEL=INFOVolume Mounts
Section titled “Volume Mounts”| Mount | Purpose |
|---|---|
/app/data | Persistent data (sessions, etc.) |
/app/config | Configuration files |
/app/logs | Log files |
Building Custom Image
Section titled “Building Custom Image”FROM ghcr.io/polvoazul/clawdbot:latest
# Add custom pluginsCOPY my-plugins/ /app/plugins/
# Custom configurationCOPY config.yaml /app/config/Build:
docker build -t my-clawdbot .Management
Section titled “Management”# View logsdocker logs -f clawdbot
# Restartdocker restart clawdbot
# Updatedocker pull ghcr.io/polvoazul/clawdbot:latestdocker-compose up -d
# Shell accessdocker exec -it clawdbot /bin/bashMulti-Architecture
Section titled “Multi-Architecture”Images available for:
linux/amd64linux/arm64(Raspberry Pi 4, Apple Silicon)
Troubleshooting
Section titled “Troubleshooting”Container exits immediately
docker logs clawdbot# Check for configuration errorsPermission issues
# Fix volume permissionssudo chown -R 1000:1000 ./data ./configNetwork issues
# Verify DNS resolutiondocker exec clawdbot ping api.anthropic.com