mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-07-31 12:20:48 +00:00
Multi-agent AI gateway with WebSocket RPC, HTTP API, and messaging channel integrations. Go port of OpenClaw with multi-tenant PostgreSQL, per-user isolation, security hardening, and production observability. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# Managed overlay — PostgreSQL (pgvector) for multi-tenant storage.
|
|
#
|
|
# Usage:
|
|
# docker compose -f docker-compose.yml -f docker-compose.managed.yml up
|
|
#
|
|
# 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
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-goclaw}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-goclaw}
|
|
POSTGRES_DB: ${POSTGRES_DB:-goclaw}
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-goclaw}"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
restart: unless-stopped
|
|
|
|
goclaw:
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
environment:
|
|
- GOCLAW_MODE=managed
|
|
- GOCLAW_POSTGRES_DSN=postgres://${POSTGRES_USER:-goclaw}:${POSTGRES_PASSWORD:-goclaw}@postgres:5432/${POSTGRES_DB:-goclaw}?sslmode=disable
|
|
volumes:
|
|
- goclaw-skills:/app/skills
|
|
|
|
volumes:
|
|
postgres-data:
|
|
goclaw-skills:
|