diff --git a/openclaw/.env.example b/openclaw/.env.example new file mode 100644 index 0000000..1b95ae6 --- /dev/null +++ b/openclaw/.env.example @@ -0,0 +1,6 @@ +# Generate a random token for gateway authentication +# You can use: openssl rand -hex 32 +OPENCLAW_GATEWAY_TOKEN=your-gateway-token-here + +# Your Anthropic API key (get from console.anthropic.com) +ANTHROPIC_API_KEY=sk-ant-xxxxx diff --git a/openclaw/docker-compose.yml b/openclaw/docker-compose.yml new file mode 100644 index 0000000..47b020f --- /dev/null +++ b/openclaw/docker-compose.yml @@ -0,0 +1,24 @@ +services: + openclaw: + container_name: openclaw + image: fourplayers/openclaw:latest + restart: unless-stopped + ports: + - 18789:18789 + - 18790:18790 + environment: + - HOME=/home/node + - TERM=xterm-256color + - TZ=America/New_York + - OPENCLAW_GATEWAY_TOKEN=${OPENCLAW_GATEWAY_TOKEN} + - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} + volumes: + - /srv/openclaw/config:/home/node/.openclaw + - /srv/openclaw/workspace:/home/node/.openclaw/workspace + init: true + networks: + - npm-network + +networks: + npm-network: + external: true