Local dev stack
Run every service of a project on your machine with one command: app services as background processes, infrastructure in Docker Compose.
Before you start
- A project with app manifests (package.json, go.mod, requirements.txt, Cargo.toml or Gemfile).
- Docker with Compose, if the project has infrastructure services such as redis or postgres.
Set up and run
Terminal
muster setup --stack dev --scan # or pick "Development" in the wizard
muster dev # deploy everything, watch health, Ctrl+C to stopPicking Development in the wizard selects the dev stack, a 5-second health timeout and no credentials. On Ctrl+C, muster dev runs each cleanup hook and stops anything left in .muster/pids/.
How start commands are chosen
The scanner reads your project files to pick a start command and port for each app service. Edit the generated deploy.sh to change them.
| File | Start command |
|---|---|
package.json | npm run dev (or npm start). Port from a --port flag, else 5173 for Vite, 3000 otherwise. |
go.mod | go run . (or go run ./cmd/<name>), port 8080. |
requirements.txt, pyproject.toml | Django (manage.py runserver), FastAPI (uvicorn --reload), Flask (flask run --reload), else python -m http.server. |
Cargo.toml | cargo run, port 8080. |
Gemfile | rails server on 3000, or Sinatra on 4567. |
What the hooks do
| Hook | Behaviour |
|---|---|
deploy.sh | Stops the previous process from its PID file, starts the command in the background, writes .muster/pids/<svc>.pid, and fails with the last 20 log lines if the process dies within 2 seconds. |
health.sh | Healthy while the PID is alive (plus a best-effort HTTP ping on the port). |
logs.sh | Tails .muster/logs/<svc>.log. |
cleanup.sh | Stops the process and removes its PID file. |
infra hooks | docker compose up -d, logs -f, and stop + rm for the service, using your compose file. |
.muster/pids/ and .muster/logs/ are gitignored. If a crash leaves stale PID files, muster doctor --fix removes them.