mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
Let's run the web server for opencode
This commit is contained in:
@@ -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"]
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user