mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
d45487433c
- Add Docker Compose configuration for one-click deployment - Add Dockerfiles for server, agent, and web services - Add deployment script (deploy.sh) with automatic setup - Add comprehensive deployment documentation (DEPLOYMENT.md) - Use host Docker socket instead of DinD for better performance - Add Nginx configuration for web frontend - Add Makefile for common operations - Update README with Docker deployment quick start Features: - One-command deployment with ./deploy.sh - Automatic JWT secret generation - Health checks for all services - Data persistence with Docker volumes - Support for Bot container management via host Docker - Production-ready configuration examples Co-authored-by: root <root@DESKTOP-OU6H3GS.localdomain>
55 lines
934 B
TOML
55 lines
934 B
TOML
## Service configuration
|
|
[log]
|
|
level = "info"
|
|
format = "text"
|
|
|
|
[server]
|
|
addr = ":8080"
|
|
|
|
## Admin
|
|
[admin]
|
|
username = "admin"
|
|
password = "admin123"
|
|
email = "admin@memoh.local"
|
|
|
|
## Auth configuration
|
|
[auth]
|
|
jwt_secret = "YZq8kXrW5dFpNt9mLxQvHbRjKsMnOePw"
|
|
jwt_expires_in = "168h"
|
|
|
|
## Docker configuration (使用宿主机 Docker socket)
|
|
[containerd]
|
|
socket_path = "unix:///var/run/docker.sock"
|
|
namespace = "default"
|
|
|
|
[mcp]
|
|
busybox_image = "memoh-mcp:latest"
|
|
snapshotter = "overlayfs"
|
|
data_root = "/var/lib/memoh/data"
|
|
data_mount = "/data"
|
|
|
|
## Postgres configuration
|
|
[postgres]
|
|
host = "postgres"
|
|
port = 5432
|
|
user = "memoh"
|
|
password = "memoh123"
|
|
database = "memoh"
|
|
sslmode = "disable"
|
|
|
|
## Qdrant configuration
|
|
[qdrant]
|
|
base_url = "http://qdrant:6334"
|
|
api_key = ""
|
|
collection = "memory"
|
|
timeout_seconds = 10
|
|
|
|
## Agent Gateway
|
|
[agent_gateway]
|
|
host = "agent"
|
|
port = 8081
|
|
|
|
[brave]
|
|
api_key = ""
|
|
base_url = "https://api.search.brave.com/res/v1/"
|