mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-07-14 03:03:54 +00:00
6895e369f6
- Remove standalone mode code: file-based stores, standalone gateway, heartbeat service, SQLite memory, standalone docker-compose - Rename docker-compose.managed.yml → docker-compose.postgres.yml - Clean up ~130 Go comments referencing "managed mode" qualifier - Simplify docker-compose.yml env vars (providers/channels via web UI) - Update .env.example to essential vars only (token + encryption key) - Add setup wizard UI (provider → agent → channel bootstrap flow) - Add logs.tail WebSocket handler for live log streaming - Add cursor-pointer to interactive UI components - Clean up config page (remove standalone-only sections) - Update README and docs for managed-only architecture
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
# Upgrade overlay — one-shot database upgrade service.
|
|
#
|
|
# Usage:
|
|
# # Preview changes (dry-run):
|
|
# docker compose -f docker-compose.yml -f docker-compose.postgres.yml -f docker-compose.upgrade.yml run --rm upgrade --dry-run
|
|
#
|
|
# # Apply upgrade:
|
|
# docker compose -f docker-compose.yml -f docker-compose.postgres.yml -f docker-compose.upgrade.yml run --rm upgrade
|
|
#
|
|
# # Check status:
|
|
# docker compose -f docker-compose.yml -f docker-compose.postgres.yml -f docker-compose.upgrade.yml run --rm upgrade --status
|
|
#
|
|
# The upgrade service runs goclaw upgrade and exits. Use --rm to auto-remove the container.
|
|
|
|
services:
|
|
upgrade:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
ENABLE_OTEL: "false"
|
|
env_file:
|
|
- path: .env
|
|
required: false
|
|
environment:
|
|
- GOCLAW_POSTGRES_DSN=postgres://${POSTGRES_USER:-goclaw}:${POSTGRES_PASSWORD:-goclaw}@postgres:5432/${POSTGRES_DB:-goclaw}?sslmode=disable
|
|
- GOCLAW_CONFIG=/app/data/config.json
|
|
- GOCLAW_MIGRATIONS_DIR=/app/migrations
|
|
- GOCLAW_ENCRYPTION_KEY=${GOCLAW_ENCRYPTION_KEY:-}
|
|
volumes:
|
|
- goclaw-data:/app/data
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
entrypoint: ["/app/goclaw"]
|
|
command: ["upgrade"]
|
|
restart: "no"
|