- backend and gateway images come from ghcr.io/evandrodevbr/opencodeui-{backend,gateway} (published)
- ghcr.io/evandrodevbr/opencodeui-frontend was never published (docker-frontend.yml failing since 2026-06-01), so the frontend keeps pulling ghcr.io/lehhair/opencodeui-frontend
28 lines
1.0 KiB
YAML
28 lines
1.0 KiB
YAML
# ============================================
|
||
# OpenCode WebUI - 纯前端独立部署
|
||
# ============================================
|
||
# 适用于已有 opencode serve 的场景,只需前端 UI
|
||
#
|
||
# 使用方法:
|
||
# docker compose -f docker-compose.standalone.yml up -d
|
||
#
|
||
# 环境变量:
|
||
# BACKEND_URL - opencode serve 地址(默认 host.docker.internal:4096)
|
||
# PORT - 前端监听端口(默认 3000)
|
||
|
||
services:
|
||
frontend:
|
||
# Imagem do upstream: ghcr.io/evandrodevbr/opencodeui-frontend ainda não foi publicada
|
||
# (docker-frontend.yml falha desde 2026-06-01). Para build local use docker-compose.build.yml.
|
||
image: ghcr.io/lehhair/opencodeui-frontend:latest
|
||
container_name: opencodeui
|
||
restart: unless-stopped
|
||
ports:
|
||
- '${PORT:-3000}:3000'
|
||
command: ['caddy', 'run', '--config', '/etc/caddy/Caddyfile.standalone']
|
||
environment:
|
||
- BACKEND_URL=${BACKEND_URL:-host.docker.internal:4096}
|
||
# Linux 需要 host.docker.internal 支持
|
||
extra_hosts:
|
||
- 'host.docker.internal:host-gateway'
|