mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-15 00:17:27 +00:00
feat(build): embed web UI in backend binary + simplify Docker variants (#620)
- Add internal/webui/ package with //go:build embedui tag for optional SPA embedding (handler.go serves static files with SPA fallback) - Add internal/version/ shared semver comparison (DRY: extracted from gateway/update_check.go and updater/updater.go) - Enhance UpdateChecker: release notes, ETag caching, filter lite-v* tags - Add web UI build stage to Dockerfile with ENABLE_EMBEDUI build arg - Simplify CI: 7 Docker variants → 4 (base, latest, full, otel) - Add SHA256 checksums job to release workflow - Add Makefile build-full target (embeds web UI in Go binary) - Default make up now embeds web UI (no separate nginx needed) - Add WITH_WEB_NGINX=1 flag for optional nginx reverse proxy - Update README + 30 translated READMEs: make up, port 18790 - Update docker-compose comments and prepare-env.sh - About dialog: show release notes with markdown rendering - Health card: amber badge for available updates BREAKING: Default Docker setup no longer requires selfservice overlay. Web dashboard served at :18790 (same port as API).
This commit is contained in:
1 parent
39bb90bd60
commit
52c67d6d92
56 files changed
+531
-381
No files matched your search
+19
-8
@@ -1,17 +1,26 @@
|
||||
# Base docker-compose — shared service definition.
|
||||
# Pre-built images: ghcr.io/nextlevelbuilder/goclaw (also on Docker Hub: digitop/goclaw)
|
||||
#
|
||||
# Combine with overlays for your deployment:
|
||||
# The default `latest` image includes an embedded web dashboard (no separate nginx needed).
|
||||
# Web UI is served at the same port as the API (default: 18790).
|
||||
#
|
||||
# Recommended (+ Web Dashboard, pre-built images):
|
||||
# docker compose -f docker-compose.yml -f docker-compose.postgres.yml -f docker-compose.selfservice.yml up -d
|
||||
# Quick start:
|
||||
# docker compose -f docker-compose.yml -f docker-compose.postgres.yml up -d
|
||||
# # Dashboard: http://localhost:18790
|
||||
#
|
||||
# Build from source (add --build):
|
||||
# docker compose -f docker-compose.yml -f docker-compose.postgres.yml -f docker-compose.selfservice.yml up -d --build
|
||||
# Optional nginx (for custom SSL, reverse proxy, caching):
|
||||
# make up WITH_WEB_NGINX=1
|
||||
# # or: docker compose -f docker-compose.yml -f docker-compose.postgres.yml -f docker-compose.selfservice.yml up -d
|
||||
# # Dashboard via nginx: http://localhost:3000
|
||||
#
|
||||
# Without dashboard: docker compose -f docker-compose.yml -f docker-compose.postgres.yml up -d
|
||||
# With OTel tracing: docker compose -f docker-compose.yml -f docker-compose.postgres.yml -f docker-compose.otel.yml up -d --build
|
||||
# With Claude CLI: add -f docker-compose.claude-cli.yml to auto-sync host ~/.claude credentials
|
||||
# Docker image variants:
|
||||
# latest — Backend + embedded web UI + Python (recommended)
|
||||
# latest-base — Backend API-only, no web UI, no runtimes
|
||||
# latest-full — All runtimes + skill dependencies pre-installed
|
||||
# latest-otel — Latest + OpenTelemetry tracing
|
||||
#
|
||||
# With OTel tracing: add -f docker-compose.otel.yml
|
||||
# With Claude CLI: add -f docker-compose.claude-cli.yml
|
||||
|
||||
services:
|
||||
goclaw:
|
||||
@@ -21,9 +30,11 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
ENABLE_OTEL: "${ENABLE_OTEL:-false}"
|
||||
ENABLE_EMBEDUI: "${ENABLE_EMBEDUI:-true}" # set to false when using WITH_WEB_NGINX
|
||||
ENABLE_PYTHON: "${ENABLE_PYTHON:-true}"
|
||||
ENABLE_FULL_SKILLS: "${ENABLE_FULL_SKILLS:-false}"
|
||||
VERSION: "${GOCLAW_VERSION:-dev}"
|
||||
# Uncomment to test update UI: GOCLAW_VERSION=v1.0.0
|
||||
ports:
|
||||
- "${GOCLAW_PORT:-18790}:18790"
|
||||
env_file:
|
||||
|
||||
Reference in new issue
Block a user