curl -fsSL https://memoh.sh | shThe script prompts for configuration, generates config.toml, and starts all services.
Run it as your normal user. The script will use sudo docker internally only when Docker requires it.
The one-click Docker Compose installer uses the containerd workspace backend. Docker and Apple workspace backends are available for manual deployments by editing [container].backend in config.toml.
git clone --recurse-submodules https://github.com/felinics/Memoh.git
cd Memoh
cp conf/app.docker.toml config.toml
nano config.toml # Change passwords and JWT secretGitHub's automatic “Source code” archives omit submodule contents. Use a recursive clone or the
complete Memoh-<version>-source.zip / .tar.gz asset attached to each release. Existing setup
checkouts can continue using git pull; run mise run submodule-init once only if the post-merge
hook was never installed.
On macOS or if your user is in the
dockergroup,sudois not required.
Important: You must create
config.tomlbefore starting.docker-compose.ymlmounts./config.tomlinto the containers — running without it will fail.
docker compose up -dAccess:
- Web UI: http://localhost:8082
- API: http://localhost:8080
Default credentials: admin / admin123 (change in config.toml)
The base docker-compose.yml contains the standard services: postgres,
pgvector, migrate, server, and web. The AI agent runs in-process inside
server. PostgreSQL-backed deployments keep the main Postgres service plain and
use the separate pgvector service for memory semantic search. SQLite deployments
keep the local graph store only and do not run vector search.
Uncomment registry = "memoh.cn" in config.toml under [container], then add the CN overlay:
docker compose -f docker-compose.yml -f docker/docker-compose.cn.yml up -d- Docker (with Docker Compose v2)
- Git
config.toml is generated from conf/app.docker.toml and should live in the project root. It is mounted into all containers at startup and is not tracked by git.
Recommended changes for production:
admin.password— Admin passwordauth.jwt_secret— JWT secret (generate withopenssl rand -base64 32)database.driver—postgrescontainer.backend—containerdfor the official Docker Compose stack; usedockerorappleonly for matching manual deploymentspostgres.password— Database password (also setPOSTGRES_PASSWORDenv var)
Prefix with
sudoon Linux if your user is not in thedockergroup.
docker compose up -d # Start
docker compose down # Stop
docker compose logs -f # View logs
docker compose ps # Status
docker compose pull && docker compose up -d # Update images- Change all default passwords and secrets
- Configure HTTPS (reverse proxy or
docker-compose.override.ymlwith SSL) - Configure firewall
- Set resource limits
- Regular backups
docker compose logs server # View service logs
docker compose config # Check configuration
docker compose build --no-cache && docker compose up -d # Full rebuild- Main service has privileged container access — only run in trusted environments
- Must change all default passwords and secrets
- Use HTTPS in production