Files
Jason Xu ea29a62eca fix: harden gateway routing and protocol fidelity
Preserve request parameters, tool-call completion reasons and retry session
affinity. Bound upstream header waits, stop expired-context scans and add
opt-in redacted request-body diagnostics.

Isolate Playground diagnostics from production pools, report stream failures
accurately, align readiness with discoverable models and honor Docker listen
configuration.

Split Go and WebUI modules by responsibility, add regression tests and CI,
standardize formatting and rewrite the English and Chinese READMEs.

Refs: #6, #18, #19, #20, #21, #22, #23, #24, #25
2026-09-15 00:43:35 +08:00

33 lines
968 B
YAML

services:
opencode2api:
image: ghcr.io/jasonxu114514/opencode2api:${OPENCODE2API_VERSION:-latest}
pull_policy: always
restart: unless-stopped
read_only: true
security_opt:
- no-new-privileges:true
environment:
CONFIG_PATH: /var/lib/opencode2api/config.json
CONFIG_SEED_PATH: /run/config/opencode2api.json
# Empty defers to the listen addresses in config.json. Export
# OPENCODE2API_LISTEN / OPENCODE2API_WEBUI_LISTEN to override them.
LISTEN_ADDRESS: ${OPENCODE2API_LISTEN:-}
WEBUI_LISTEN_ADDRESS: ${OPENCODE2API_WEBUI_LISTEN:-}
ports:
- "${OPENCODE2API_PORT:-8080}:8080"
- "${OPENCODE2API_WEBUI_PORT:-8081}:8081"
configs:
- source: opencode2api_config
target: /run/config/opencode2api.json
volumes:
- opencode2api-state:/var/lib/opencode2api
tmpfs:
- /tmp
configs:
opencode2api_config:
file: ./config.json
volumes:
opencode2api-state: