mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
c53d35740e
- Add Dockerfile.containerd: multi-stage build that compiles MCP binary, assembles rootfs, creates Docker image tar, and bundles it with containerd - Add containerd-entrypoint.sh: auto-imports MCP image on first start - Fix MCP image reference: rename busybox_image to image in config, use fully-qualified docker.io/library/memoh-mcp:latest everywhere - Make image ref configurable via config.toml instead of hardcoded - Simplify deploy.sh: remove manual nerdctl/containerd-install steps
57 lines
946 B
TOML
57 lines
946 B
TOML
## Service configuration
|
|
[log]
|
|
level = "info"
|
|
format = "text"
|
|
|
|
[server]
|
|
# HTTP listen address
|
|
addr = ":8080"
|
|
|
|
## Admin
|
|
[admin]
|
|
username = "admin"
|
|
password = "123456"
|
|
email = "demo@demo.com"
|
|
|
|
## Auth configuration
|
|
[auth]
|
|
jwt_secret = "YZq8kXrW5dFpNt9mLxQvHbRjKsMnOePw"
|
|
jwt_expires_in = "168h"
|
|
|
|
## Containerd configuration
|
|
[containerd]
|
|
socket_path = "/run/containerd/containerd.sock"
|
|
namespace = "default"
|
|
|
|
[mcp]
|
|
image = "docker.io/library/memoh-mcp:dev"
|
|
snapshotter = "overlayfs"
|
|
data_root = "data"
|
|
data_mount = "/data"
|
|
|
|
## Postgres configuration
|
|
[postgres]
|
|
host = "localhost"
|
|
port = 5432
|
|
user = "postgres"
|
|
password = "1234"
|
|
database = "demo"
|
|
sslmode = "disable"
|
|
|
|
|
|
## Qdrant configuration
|
|
[qdrant]
|
|
base_url = "http://127.0.0.1:6334"
|
|
api_key = ""
|
|
collection = "memory"
|
|
timeout_seconds = 10
|
|
|
|
## Agent Gateway
|
|
[agent_gateway]
|
|
host = "127.0.0.1"
|
|
port = 8081
|
|
server_addr = ":8080"
|
|
|
|
[brave]
|
|
api_key = ""
|
|
base_url = "https://api.search.brave.com/res/v1/" |