mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
fix remaining non-_dev stacks: bookstack, gitea, heimdall, invokeai, n8n, nextcloud, opencode, paperless, pihole, qbittorrent, stash
This commit is contained in:
+15
-10
@@ -1,22 +1,27 @@
|
||||
# OpenCode Docker Compose
|
||||
|
||||
services:
|
||||
opencode:
|
||||
image: ${OPENCODE_IMAGE_NAME:-ghcr.io/anomalyco/opencode:latest}
|
||||
image: ${OPENCODE_IMAGE:-ghcr.io/anomalyco/opencode:latest}
|
||||
restart: ${OPENCODE_RESTART:-unless-stopped}
|
||||
|
||||
volumes:
|
||||
- ${VOL_PATH:-/data}/opencode/config:/config
|
||||
- ${VOL_PROJECTS:-/data/projects}:/projects
|
||||
|
||||
- ${VOL_PATH}/opencode/config:/config
|
||||
- ${VOL_PROJECTS:-${VOL_PATH}/projects}:/projects
|
||||
environment:
|
||||
- OPENCODE_PORT=${OPENCODE_PORT:-4096}
|
||||
- OPENCODE_HOSTNAME=${OPENCODE_HOSTNAME:-0.0.0.0}
|
||||
- OPENCODE_CONFIG=/config/config.json
|
||||
- OPENCODE_MODEL=qwen3:8b-16k
|
||||
- OLLAMA_HOST=${OLLAMA_HOST_URL:-http://localhost:11434}
|
||||
|
||||
ports:
|
||||
- "${OPENCODE_PORT:-4096}:4096"
|
||||
- ${OPENCODE_PORT:-4096}:4096
|
||||
command:
|
||||
- serve
|
||||
- --port
|
||||
- ${OPENCODE_PORT:-4096}
|
||||
- --hostname
|
||||
- 0.0.0.0
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
command: ["serve", "--port", "${OPENCODE_PORT:-4096}", "--hostname", "0.0.0.0"]
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user