GitHub

The local stack

Every project with a database has its own Postgres (with pg_zega) and Zega, in Docker. simien dev starts them; these commands manage them directly.

simien container start    # start Postgres and Zega and wait until both answer
simien container status   # are they up and answering?
simien container logs postgres -f    # one container's output (--tail N)
simien container stop     # stop and remove the containers; the data is kept
simien container reset --yes   # delete the project's data and start empty
simien container update   # pull the images this simien pins; the data is kept
simien container ls       # every Simien project's containers on this machine

What you need

  • Docker: Docker Desktop, OrbStack, Colima or Rancher Desktop, running. Simien finds the socket the same way the docker command does (its current context first, then the usual places).
  • Nothing else. Simien runs the containers through kebele, which it installs and runs itself, in a sandbox that may use the Docker socket and nothing else of yours; it never reads your Docker credentials. A project that has its own kebele (in node_modules/.bin), or one on PATH, uses that instead.

Ports

Each project's Postgres and Zega get a pair of ports, recorded in simien.json's db section; simien db init picks the first free pair from 54330. Simien keeps a map of every project's ports (~/.config/simien/portmap.json), so two projects never claim the same pair.

Apple Silicon and Intel

The Postgres and Zega images are published for both linux/arm64 and linux/amd64, and Docker pulls the one your Mac or Linux machine needs. From simien 0.61.1 an Apple Silicon Mac runs them natively.

If you used the old workaround and pulled the Intel images by hand, switch to the native ones (your data stays in its Docker volumes):

simien container update