muster.json
The project config file: services, health checks, deploy order and per-service options.
Overview
muster setup writes muster.json at the project root. muster finds it by walking up from the current folder. A legacy deploy.json is still read when there is no muster.json. Commit it, together with .muster/hooks/.
muster.json
{
"project": "my-app",
"version": "1",
"deploy_order": ["redis", "api", "worker"],
"services": {
"redis": {
"name": "Redis",
"health": { "enabled": true, "type": "tcp", "port": 6379 }
},
"api": {
"name": "API Server",
"k8s": { "deployment": "myapp-api", "namespace": "production" },
"health": { "enabled": true, "type": "http", "endpoint": "/health", "port": 8080, "timeout": 30 },
"credentials": { "enabled": true, "mode": "session", "required": ["API_KEY"] },
"strategy": "canary",
"deploy_timeout": 300
},
"worker": {
"name": "Background Worker",
"remote": { "enabled": true, "host": "worker.example.com", "user": "deploy", "project_dir": "/opt/my-app" },
"git_pull": { "enabled": true, "remote": "origin", "branch": "main" }
}
}
}muster validates the file when it loads it; the same checks appear in muster doctor. Service keys may contain hyphens.
Top-level keys
| Key | Description |
|---|---|
project | Project name. |
version | Config format version ("1"). |
services | Object of services, keyed by service name. The key is also the hook folder name. |
deploy_order | Array of service keys, deployed in this order. Every service should appear; doctor flags mismatches. |
deploy_phases | Optional. Array of {"services": […]} that reorders a full deploy by phase. |
skills | Skills enabled for this project. |
env | muster env options: source (muster or dotenv) and default_env. See Env & flags. |
cloud.activity | Set false to stop reporting deploy activity to Fleet Cloud for this project. |
Service keys
| Key | Description |
|---|---|
name | Display name. |
skip_deploy | true leaves the service out of muster deploy (set by setup for services found in files but not in the cluster). |
deploy_timeout | Seconds each hook may run (default 120). Exported as MUSTER_DEPLOY_TIMEOUT to every stack. |
deploy_mode | Free-form value exported to hooks as MUSTER_DEPLOY_MODE. |
health | Health check. See below. |
credentials | Prompted secrets. See below. |
k8s | Kubernetes target. See below. |
strategy | rolling (default), blue-green or canary, or an object. See Rollouts. |
remote | Run this service's hooks on another host over SSH. See below. |
git_pull | Run git pull before the deploy hook. See below. |
health
| Key | Description |
|---|---|
enabled | false turns the check off. |
type | http, tcp or command. Tells status, explain and doctor how to probe; the check itself is health.sh. |
endpoint | Path for http checks, e.g. /health. |
port | Port for http and tcp checks. |
command | Command for command checks. |
timeout | Seconds (default: the default_health_timeout setting, 10). |
credentials
| Key | Description |
|---|---|
enabled | Turn prompting on. |
mode | off, save (keychain), session (memory) or always (prompt every time). |
required | Names of the values to collect, exported to hooks as MUSTER_CRED_<KEY>. |
k8s
| Key | Description |
|---|---|
deployment | Deployment name, exported as MUSTER_K8S_DEPLOYMENT. |
namespace | Namespace, exported as MUSTER_K8S_NAMESPACE. |
service | The Service carrying production traffic (rollouts; default: the deployment name). |
container | Container to update and report (default: the first). |
remote
| Key | Description |
|---|---|
enabled | Turn remote deploy on. |
host | Host name or IP. |
user | SSH user. |
port | SSH port (default 22). |
identity_file | SSH key, e.g. ~/.ssh/deploy_key. |
project_dir | Project folder on the host. Hooks and git pull run here. |
auth | Optional {method: key | password | agent, mode: save | session | always}. |
cloud | true routes this service through the Fleet Cloud relay instead of SSH. |
git_pull
| Key | Description |
|---|---|
enabled | Pull before every deploy of this service. |
remote | Git remote (default origin). |
branch | Branch (default main). |
Project files
Project layout
your-project/
├── muster.json
├── muster.env.schema.json (muster env) typed keys and flags
├── .env optional, loaded before deploys
├── .musterignore optional, paths setup should not scan
└── .muster/
├── hooks/<service>/ the hook scripts (commit these)
├── logs/ deploy logs and history (gitignored)
├── pids/ dev stack PID files (gitignored)
├── env/ (muster env) config, encrypted secrets, flags
└── skills/ project skillsHook approvals are not in the project: they are stored per machine in ~/.muster/trust/. Global settings live in ~/.muster/settings.json (muster settings).