From f73a9b660683cbc7d8edd5d888e91c185014e5a8 Mon Sep 17 00:00:00 2001 From: Nick Yeoman Date: Wed, 10 Jun 2026 01:04:49 -0700 Subject: [PATCH] Let's run the web server for opencode --- opencode/compose.yaml | 4 +++- opencode/sample.env | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/opencode/compose.yaml b/opencode/compose.yaml index 55f9f54..ee4ee29 100644 --- a/opencode/compose.yaml +++ b/opencode/compose.yaml @@ -12,10 +12,12 @@ services: environment: - OPENCODE_PORT=${OPENCODE_PORT:-4096} - - OPENCODE_HOSTNAME=${OPENCODE_HOSTNAME:-localhost} + - OPENCODE_HOSTNAME=${OPENCODE_HOSTNAME:-0.0.0.0} - OPENCODE_CONFIG=/config/config.json - OPENCODE_MODEL=ollama/qwen3:8b-16k - OLLAMA_HOST=http://10.1.1.16:11434 ports: - "${OPENCODE_PORT:-4096}:4096" + + command: ["serve", "--hostname", "0.0.0.0", "--port", "4096"] \ No newline at end of file diff --git a/opencode/sample.env b/opencode/sample.env index b6ebd59..9fc0b25 100644 --- a/opencode/sample.env +++ b/opencode/sample.env @@ -2,4 +2,4 @@ OPENCODE_IMAGE_NAME=ghcr.io/anomalyco/opencode:latest OPENCODE_RESTART=unless-stopped VOL_PATH=/home/youruser/.local/share OPENCODE_PORT=4096 -OPENCODE_HOSTNAME=localhost +OPENCODE_HOSTNAME=0.0.0.0