chore: require config.toml for deployment, update docs (#139)

- docker-compose.yml now defaults to ./config.toml instead of
  conf/app.docker.toml, enforcing explicit configuration for
  production deployments (dev environment still uses conf/ directly)
- Update DEPLOYMENT.md and docs with clear instructions to copy
  config template before starting
- Update config-toml.md: add registry/cni fields, remove obsolete
  [brave] section (search providers are now managed via web UI),
  fix default values
- Add China mainland mirror documentation
This commit is contained in:
BBQ
2026-02-26 20:20:29 +08:00
committed by GitHub
parent fe10abf3fc
commit cedac8dbf6
4 changed files with 86 additions and 87 deletions
+3 -3
View File
@@ -43,7 +43,7 @@ services:
container_name: memoh-migrate
entrypoint: ["/app/memoh-server", "migrate", "up"]
volumes:
- ${MEMOH_CONFIG:-./conf/app.docker.toml}:/app/config.toml:ro
- ${MEMOH_CONFIG:-./config.toml}:/app/config.toml:ro
depends_on:
postgres:
condition: service_healthy
@@ -57,7 +57,7 @@ services:
privileged: true
pid: host
volumes:
- ${MEMOH_CONFIG:-./conf/app.docker.toml}:/app/config.toml:ro
- ${MEMOH_CONFIG:-./config.toml}:/app/config.toml:ro
- containerd_data:/var/lib/containerd
- server_cni_state:/var/lib/cni
- memoh_data:/opt/memoh/data
@@ -77,7 +77,7 @@ services:
image: memohai/agent:latest
container_name: memoh-agent
volumes:
- ${MEMOH_CONFIG:-./conf/app.docker.toml}:/config.toml:ro
- ${MEMOH_CONFIG:-./config.toml}:/config.toml:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "8081:8081"