mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-06-09 20:13:24 +00:00
52c67d6d92
- 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).
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
# PostgreSQL overlay — pgvector for multi-tenant storage.
|
|
#
|
|
# Usage (web dashboard built-in by default):
|
|
# make up
|
|
# # or: docker compose -f docker-compose.yml -f docker-compose.postgres.yml up -d --build
|
|
#
|
|
# Required env vars (set in .env or shell):
|
|
# GOCLAW_OPENROUTER_API_KEY (or another provider key)
|
|
# POSTGRES_PASSWORD (defaults to "goclaw" for dev)
|
|
|
|
services:
|
|
postgres:
|
|
image: pgvector/pgvector:pg18
|
|
ports:
|
|
- "${POSTGRES_PORT:-5432}:5432"
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-goclaw}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-goclaw}
|
|
POSTGRES_DB: ${POSTGRES_DB:-goclaw}
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-goclaw} -d ${POSTGRES_DB:-goclaw}"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
restart: unless-stopped
|
|
|
|
goclaw:
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
environment:
|
|
- GOCLAW_POSTGRES_DSN=postgres://${POSTGRES_USER:-goclaw}:${POSTGRES_PASSWORD:-goclaw}@postgres:5432/${POSTGRES_DB:-goclaw}?sslmode=disable
|
|
volumes:
|
|
- goclaw-skills:/app/skills
|
|
- goclaw-workspace:/app/.goclaw
|
|
|
|
volumes:
|
|
postgres-data:
|
|
goclaw-skills:
|