Sənədlər ingilis dilindədir.
Installing the server
meik runs on one Linux host with Docker Compose: Postgres, Temporal, the API with the web UI, a control worker and workspace workers. With prebuilt images it takes about ten minutes. For larger teams the same services spread over several hosts.
Requirements
- A Linux host with Docker Engine 24+ and the Compose plugin.
- 4 CPUs, 8 GB RAM, 30 GB disk to evaluate. A team needs more workspace slots — see sizing.
- A kernel that allows unprivileged user namespaces (every current distribution). The workspace worker runs every
agent command and every gate in a bubblewrap sandbox. On Ubuntu 23.10 and later set
kernel.apparmor_restrict_unprivileged_userns=0. - Credentials for one model provider: an Anthropic API key or Claude subscription, Claude on Amazon Bedrock, Claude on Google Vertex AI, or OpenAI models through Codex. They can also be entered in the web UI on first run.
- For web previews (optional): Docker Engine 26+ with gVisor (
runsc) on the host that runs the preview worker.
The short way
With the images in place, one command:
deploy/first-start.sh --admin-email [email protected]
It generates the database passwords and the master key into deploy/.env (mode 0600), starts the stack, waits for the
API and creates the admin account. Then open the web UI, sign in and answer the
first run's three questions.
Back up the master key. It encrypts every integration secret stored in the database. Keep it apart from the database backups.
By hand
cp deploy/.env.example deploy/.env
openssl rand -hex 24 # three times: POSTGRES_PASSWORD, MEIK_DB_PASSWORD, TEMPORAL_DB_PASSWORD
docker run --rm <registry>/control-worker:<version> secrets keygen # MEIK_MASTER_KEY
$EDITOR deploy/.env # the passwords, the master key, the registry and version of the images
docker compose -f deploy/docker-compose.yml up -d
docker compose -f deploy/docker-compose.yml ps # all services healthy, migrate exited (0)
docker compose -f deploy/docker-compose.yml exec control-worker meik llm check
On the first start Postgres creates the databases, Temporal sets up its schemas, a one-shot migrate service applies
the migrations, and the workspace worker checks that its sandbox can run. If it reports that the OS sandbox cannot run,
the host does not allow unprivileged user namespaces.
Put it on the network
The API listens on 127.0.0.1:8080. Before you open it to anyone:
- put a TLS reverse proxy in front of it and set the public URL and trusted proxy in the settings;
- keep Postgres and Temporal off the public network — other hosts (more workers, a Mac worker) reach them over a private network or VPN;
- the Temporal UI has no login: keep it on localhost.
Sizing
Users do not size a meik installation — concurrent tasks do. Each running task holds a workspace slot: a worktree
in which builds, tests and the agent run. Plan roughly 2 vCPU, 6–8 GB RAM and 50–100 GB of fast disk per slot,
and scale by adding workspace workers (MEIK_WORKER_SLOTS per container, more containers or hosts). A task stays on
the host that started it for its whole life.
| Team | Core host (Postgres, Temporal, API, control worker) | Workspace workers |
|---|---|---|
| Evaluation | the same host: 4 CPU, 8 GB | 2 slots |
| Up to ~30 people | 8 vCPU, 16–32 GB | one host, 12–16 vCPU, 48–64 GB, 5–6 slots |
| ~100 people | 8 vCPU, 32 GB, NVMe | two to four such hosts |
Web previews run on a separate host: their worker holds the host's Docker socket, so it must not share a host with meik or Postgres. iOS and macOS repositories need a Mac workspace worker with Xcode; mobile previews also run on developers' own Macs through Meik Desktop.
Operations
- Backups: nightly
pg_dumpof the meik and Temporal databases plus the task and workspace volumes; the master key kept separately. Rehearse a restore. - Upgrades: back up first — migrations have no down path. Migrate, then roll out the workspace workers, the control worker and the API, draining each workspace host first.
- Observability: JSON logs on stdout, Prometheus metrics on the API, optional OpenTelemetry traces. Alert on queue backlog age, missing pollers, hosts down and tasks blocked for want of a worker.
- Meik Desktop and the CLI are served by your installation at
/downloads/— see install.