Examples
Copy-paste Kordfiles for common stacks.
Project layout
A Kordfile lives at your project root, next to your apps:
Kordfile
Stacks
workspace "Acme"
app db
run docker compose up postgres
port 5432
app api
path ./apps/api
run npm run dev
port 4000
health /healthz
depends db
app web
path ./apps/web
run npm run dev
port 3000
depends api
proxy app.localworkspace "Rusty"
app api
run cargo run --bin api
port 8080
health /health
app worker
run cargo run --bin worker
depends apiworkspace "Pyapp"
app redis
run docker compose up redis
port 6379
app web
run uvicorn main:app --reload --port 8000
port 8000
depends redis
proxy py.localRun any of them with kordrun start.