Why not just ssh and docker compose up?
You can, and for one service it's fine. It gets fragile when the database has to be up before the API, when an image builds but the app crashes a minute later, or when you need to know what was running yesterday. Panels solve that by taking over your config, and Compose files that work locally don't always survive their networking and variables (HN). muster keeps the file as it is and wraps it in hooks.
1. Install and set up
curl -fsSL https://getmuster.dev/install.sh | bashcd ~/acme-storemuster setup --scanSetup finds docker-compose.yml, makes each compose service a muster service, infers health checks from published ports, sorts infrastructure (postgres, redis) first, and writes muster.json plus .muster/hooks/<service>/. The hooks are short shell scripts you can read and edit:
#!/usr/bin/env bashset -euo pipefailCOMPOSE_FILE="${COMPOSE_FILE:-docker-compose.yml}"docker compose -f "$COMPOSE_FILE" build apidocker compose -f "$COMPOSE_FILE" up -d api2. Choose where the hooks run
Two options, and both use the same hooks:
- From your laptop over SSH. Mark services remote and muster pipes each hook to the server with
ssh … bash -s, in the project directory there. - muster on the server. Check the project out on the server and add it to a fleet in muster mode. The server runs
muster deployitself and keeps its own history. This is also how servers behind NAT work.
# option 1: hooks over SSHmuster setup --update --scan --remote [email protected]:22:/opt/acme \ --remote [email protected]:22:/opt/acme --git-pull api --git-pull web# option 2: muster on the servermuster fleet add vps1 [email protected] --mode muster --path /opt/acmePut the server's .env next to the compose file (0600, not committed); Compose reads it for variable substitution as usual.
3. Deploy
muster hooks approve # first time, and after any hook changemuster deploy # or: muster fleet deploy vps1Services deploy in order. Each one streams its hook output and must pass its health check (HTTP, TCP or a command) before the next starts. When something fails, muster matches the log against its offline rules and prints a likely cause, such as a port already in use or a missing lockfile, with a one-key fix when one is safe.
4. Roll back, and see what happened
muster rollback api # runs api's rollback hook, then checks healthmuster history # who deployed what, when, and how it wentmuster explain api # why the last failure happenedAbout zero downtime
docker compose up -d replaces a container in place, so expect a short gap while the new one starts. If that matters, run two replicas behind a proxy like Caddy or Traefik, or move the service to Kubernetes, where muster has blue-green and canary. Blue-green for Docker and Compose hosts is on the roadmap, not shipped.