Seven web stacks, seven Postgres databases, zero Docker containers on a Mac
Every new project on my Mac used to start the same way. A docker-compose.yml for Postgres. A second definition of the same services for CI, in another YAML dialect. Docker Desktop holding memory in the background. And the day I opened a second branch to review a pull request, port 5432 was already taken.
None of these tools is bad. Docker Compose is the most readable way to describe a few services, Docker Desktop and OrbStack have made containers on macOS fast and dependable, and devcontainers give a whole team the same editor environment. The friction shows up between them: the dev environment, the CI environment and the second worktree are three slightly different worlds, each with its own idea of a service, a port and a cache.
I wanted to know whether one file per stack could cover local dev, CI and parallel branches without any of that. So I took seven common web stacks, gave each one a Postgres database, and recorded everything on a Mac.
The setup
Each stack is a small app that counts its own requests in Postgres and serves a live dashboard.
| Stack | App | Tests |
|---|---|---|
| Go | Gin + pgx | go test |
| Python | FastAPI + psycopg 3 | pytest |
| Rust | Axum + tokio-postgres | cargo test |
| Vue | Nuxt 4 + node-postgres | vitest |
| Node | Fastify 5 + postgres.js | node --test |
| Bun | Hono + Bun.SQL | bun test |
| PHP | Laravel 13 + pdo_pgsql | phpunit |
Here is the entire dev definition of the Go stack, .sklp/go-gin/dev.yaml:
version: 1
kind: devstack
name: go-gin
services:
postgres:
image: postgres:17-alpine
port: 5432
env:
POSTGRES_USER: app
POSTGRES_PASSWORD: app
POSTGRES_DB: app
volumes:
- go-gin-pg:/var/lib/postgresql/data
ready:
log: "database system is ready to accept connections"
api:
run: go run .
workdir: go-gin
port: 8080
depends_on: [postgres]
env:
DATABASE_URL: postgres://app:app@postgres:5432/app?sslmode=disable
ready:
http: /healthzPostgres comes from a regular OCI image. The app itself is a plain run: command (go run ., uvicorn, cargo run, php artisan serve) executed against toolchains declared once for the whole repository in .sklp/space.yaml. sklp dev go-gin starts Postgres, waits for its ready line, then starts the API and waits for /healthz.
CI reuses the same environment. One pipeline file, one scope per stack:
- name: test-go-gin
scope: [go-gin]
tools: [go]
run: cd go-gin && go test -v -count=1 ./...sklp run ci -only go-gin runs it in an isolated space built from the same recipe as dev.
What "no Docker" means here
Every recording runs the same check: docker ps returns an empty table while the stacks are up. Docker is installed on this Mac, through OrbStack; it is simply not involved.
sklp embeds its own container runtime: runc, user namespaces, cgroups v2, overlayfs, a network namespace per space. Everything runs rootless. On Linux that runs directly on the host. On macOS there is no way around a Linux kernel, so sklp boots its own Linux VM through Apple's Virtualization.framework and relays commands into it. It replaces Docker Desktop's VM rather than escaping virtualisation altogether, and the distinction is worth stating plainly.
Two branches at once, no port juggling
Every sklp dev prints a URL scoped to its worktree:
↥ api → http://api.5159c4a7691f.localhost:8456Open a second worktree of the same repository, run the same command, and you get a second space, a second Postgres and a second URL. The fixed ports (5432, 8080) belong to whichever stack started first; the second one reports the collision and keeps serving on its own URL instead of failing.
Two dashboards, two counters moving independently, because each branch writes to its own database. sklp space ls lists both spaces, and sklp cockpit shows every space, its services and their logs in one terminal view.
Numbers, measured on the recordings
- Warm
sklp dev: between 8 and 27 seconds from command to healthy app, depending on the stack. Rust and Nuxt are the slowest because they compile or bundle on start. - Full CI for the seven stacks, warm: 18 seconds. Steps of stacks untouched since the previous run are served from cache.
- First CI run after changing the toolchain recipe: about two minutes, mostly apt and toolchain downloads while the runner image is rebuilt.
- Runner image size: around 2.8 GB with seven toolchains, gcc and PHP in a single recipe. Convenient for a showcase; a real repository would declare only what it uses.
Every recording was made with warm caches: one off-camera sklp dev and one sklp run ci per stack beforehand. A cold first run on a fresh machine takes several minutes, and the recordings do not show it.
What broke along the way
Recording this surfaced three real bugs. All three are fixed upstream; two are merged and the third is in review.
- CI lost its colours inside the space.
sklp runre-executes the pipeline inside the runner space with its output on a pipe, so the inner process fell back to its plain renderer and printed a raw JSON report at the end. The outer process now tells the inner one it is writing to a terminal (#24). - Every CI run rebuilt its environment. The cache collector counted the dev spaces' mounted images as live, which left the image the run had just built as the only thing it could evict. Each run then rebuilt it from scratch. Full CI went from two minutes back to 18 seconds once the finishing run's own image was protected (#25).
- The worktree URL could point at nothing on macOS. When its preferred port was busy inside the VM, the guest moved to the next one, but the Mac only forwarded the preferred one. The Mac now forwards the few ports the guest can move to (#26, in review).
The third one would have quietly broken the parallel-branches argument above. I would not have found it without trying to film it.
Where it stops
- It is not Kubernetes. A space runs on one machine. If your application must spread across several nodes, keep your orchestrator.
- On macOS it is a VM. A lighter, dedicated one, but a VM all the same.
- The ecosystem is young. Compose files are everywhere and every tutorial assumes them. sklp asks you to write a
dev.yaml; it is short, but it is one more format. - If Docker Compose and your current CI already serve you well, there is little reason to move. This approach pays off when the gap between dev, CI and parallel branches is what costs you time.
Try it
The local development guide covers dev.yaml and the space recipe, and the CI guide covers pipelines and scopes. Write a dev.yaml for one of your own stacks, run sklp dev, then sklp run ci, and compare with what your current setup takes to do the same.