Run Minimal Core alone with Docker
Minimal Core, its licence Relay and Postgres as three Docker Compose containers on your Mac, reached on localhost only. Your own gateway and sign-in sit in front of it. Needs Docker with Compose v2 or later, running, plus python3 and openssl.
Want sign-in and a gateway included? Use the full stack.
1Get your licence
From the licence portal (Downloads), download a Free licence:
minimal-license-<slug>.jsonandminimal-license-secret-<slug>.json.- This machine’s public address on the Relay access list in the portal. Find it with
curl -4 -s https://checkip.amazonaws.com.
Using Minimal means the Terms of Service, the Privacy Policy and the Consent Notice. Read them before you start.
2Clone and set up
From the public minimal-setup repository:
git clone https://github.com/littlebitlabs/minimal-setup.git
cd minimal-setup/compose
./setup.sh <slug> <license.json> <license-secret.json>To choose ports other than 3045 and 3046, see Port already allocated before you run setup.sh.
3Start
./fetch-binaries.sh
docker compose up -d --build4Check it is running
After about 30 seconds:
docker compose ps # postgres, relay, minimal: Up (healthy)
curl http://127.0.0.1:3045/minimal/proof/v1/ping # {"code":200,"status":"OK","message":"pong"}You should see the output in the comments. Minimal Core is at http://127.0.0.1:3045. Its MCP server is at http://127.0.0.1:3046.
5Connect Minimal Studio
Minimal Studio is the developers’ workbench for Minimal Core: it connects to your server and is where you do the work. Install it, open the Admin tab and enter:
- Server URL:
http://127.0.0.1:3045 - Server key: copy it with the command below
- User id:
sys:provisioner-01 - Role:
admin
grep -m1 server_key config/minimal.yml | sed -E 's/.*server_key: *"([^"]*)".*/\1/' | pbcopyBack up compose/.env. The database is encrypted with the key inside it.
Troubleshooting
Relay is unhealthy, log says unexpected status 403
This machine’s public address is not on the Relay access list. Add it in the licence portal, then run docker compose up -d.
Cannot connect to the Docker daemon
Docker Desktop is not running. Run open -a Docker, wait about 20 seconds, and retry.
Port already allocated
Another process holds 3045 or 3046. Set MINIMAL_PORT or MCP_PORT in .env, then run docker compose up -d. To choose ports before the first setup:
MINIMAL_PORT=13045 MCP_PORT=13046 ./setup.sh <slug> <license.json> <license-secret.json>.env exists when running setup.sh
Setup was already done here. This is a safety stop that protects the encryption key. Skip setup.sh and run ./fetch-binaries.sh and docker compose up -d --build.
bind source path does not exist: .../schema/postgres.sql
The schema is not fetched. Run ./fetch-binaries.sh.
does not match its pin
The download is not the pinned file. Do not use it.
Replace the Minimal Core binary
Put a Linux binary at compose/minimal/bin/linux-arm64/minimal (linux-amd64 on Intel), then rebuild only Minimal Core. Postgres data and .env are kept:
docker compose up -d --build minimalTo go back to the pinned version, run ./fetch-binaries.sh after deleting that file. A binary that expects a newer schema than the pinned one may not start.
Stop or reset
- Stop and keep the data:
docker compose down - Reset (destroys the database):
docker compose down -v, then delete.env,config/,license/andschema/, then run./setup.shagain.