From 8bab95d2efe0de7e3b99c38b42e784ff4cdc9884 Mon Sep 17 00:00:00 2001 From: poprhythm Date: Tue, 3 Feb 2026 02:42:59 +0000 Subject: [PATCH] add openclaw --- openclaw/.env.example | 6 ++++++ openclaw/docker-compose.yml | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 openclaw/.env.example create mode 100644 openclaw/docker-compose.yml 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