From 7c4393828d52cd4c972dca6907caa9d10e8eca8e Mon Sep 17 00:00:00 2001 From: poprhythm Date: Sun, 8 Feb 2026 21:08:23 +0000 Subject: [PATCH] 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 --- openclaw/.env.example | 5 +++-- openclaw/docker-compose.yml | 12 +++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/openclaw/.env.example b/openclaw/.env.example index 1b95ae6..19f6822 100644 --- a/openclaw/.env.example +++ b/openclaw/.env.example @@ -2,5 +2,6 @@ # 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 +# Ollama Configuration +# OpenClaw will connect to Ollama running at http://ollama:11434 +# Make sure Ollama is running and has models pulled (e.g., llama3, mistral) diff --git a/openclaw/docker-compose.yml b/openclaw/docker-compose.yml index 47b020f..1eb9ba1 100644 --- a/openclaw/docker-compose.yml +++ b/openclaw/docker-compose.yml @@ -1,17 +1,19 @@ services: openclaw: container_name: openclaw - image: fourplayers/openclaw:latest + image: ghcr.io/openclaw/openclaw:main restart: unless-stopped - ports: - - 18789:18789 - - 18790:18790 environment: - HOME=/home/node - TERM=xterm-256color - TZ=America/New_York + - PUID=1000 + - PGID=1000 - 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: - /srv/openclaw/config:/home/node/.openclaw - /srv/openclaw/workspace:/home/node/.openclaw/workspace