Update OpenClaw for git-linked deployment with Ollama

- Switch to official ghcr.io/openclaw/openclaw:main image
- Remove port mappings in favor of nginx reverse proxy
- Add reverse proxy environment variables (VIRTUAL_HOST, etc.)
- Configure for Ollama integration instead of Anthropic API
- Add PUID/PGID for proper file permissions
This commit is contained in:
2026-02-08 21:08:23 +00:00
parent a6c4302c00
commit 7c4393828d
2 changed files with 10 additions and 7 deletions
+3 -2
View File
@@ -2,5 +2,6 @@
# You can use: openssl rand -hex 32 # You can use: openssl rand -hex 32
OPENCLAW_GATEWAY_TOKEN=your-gateway-token-here OPENCLAW_GATEWAY_TOKEN=your-gateway-token-here
# Your Anthropic API key (get from console.anthropic.com) # Ollama Configuration
ANTHROPIC_API_KEY=sk-ant-xxxxx # OpenClaw will connect to Ollama running at http://ollama:11434
# Make sure Ollama is running and has models pulled (e.g., llama3, mistral)
+7 -5
View File
@@ -1,17 +1,19 @@
services: services:
openclaw: openclaw:
container_name: openclaw container_name: openclaw
image: fourplayers/openclaw:latest image: ghcr.io/openclaw/openclaw:main
restart: unless-stopped restart: unless-stopped
ports:
- 18789:18789
- 18790:18790
environment: environment:
- HOME=/home/node - HOME=/home/node
- TERM=xterm-256color - TERM=xterm-256color
- TZ=America/New_York - TZ=America/New_York
- PUID=1000
- PGID=1000
- OPENCLAW_GATEWAY_TOKEN=${OPENCLAW_GATEWAY_TOKEN} - OPENCLAW_GATEWAY_TOKEN=${OPENCLAW_GATEWAY_TOKEN}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} # Reverse proxy configuration
- VIRTUAL_HOST=openclaw.kolpacksoftware.com
- VIRTUAL_PORT=18789
- LETSENCRYPT_HOST=openclaw.kolpacksoftware.com
volumes: volumes:
- /srv/openclaw/config:/home/node/.openclaw - /srv/openclaw/config:/home/node/.openclaw
- /srv/openclaw/workspace:/home/node/.openclaw/workspace - /srv/openclaw/workspace:/home/node/.openclaw/workspace