-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.standalone.yml
More file actions
27 lines (26 loc) · 1.03 KB
/
Copy pathdocker-compose.standalone.yml
File metadata and controls
27 lines (26 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ============================================
# 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'