Files
PiAgentUI/docker-compose.standalone.yml
Evandro Fonseca Junior 1dcd951bd7 fix(docker): keep the frontend image on upstream until it is published here
- 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
2026-09-14 08:51:23 -03:00

28 lines
1.0 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================
# 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'