SEC.01

The playbook

The run starts read-only: the recon probes decide what happens next. The steps that follow are adapted to the distribution and state found — a real machine is rarely clean.

  1. 01reconDocker Engine + compose plugin present?
  2. 02reconGarage already installed (container, binary, service) or existing /opt/garage/garage.toml? → do not recreate or regenerate the secrets, verify
  3. 03reconports 3900-3903 free? (empty, unless an existing Garage)
  4. 04reconfree space > requested capacity (otherwise lower it) and RAM ≥ 512 MB
  5. 05recondistro for the official Docker repository
  6. 06recononly if a domain is provided: is a reverse proxy already on 80/443? (reuse it)
  7. 07actOfficial Docker repository (only if Docker is missing)verify
  8. 08actDeclare the Docker apt source (Debian/Ubuntu, if Docker is missing)verify
  9. 09actInstall Docker Engine (if missing)verify
  10. 10actWrite /opt/garage/garage.toml (generated secrets)verify
  11. 11actWrite /opt/garage/compose.yamlverify
  12. 12actStart Garageverify
  13. 13actAssign the single-node layoutverify
  14. 14actApply the layoutverify
  15. 15actCreate the first bucketverify
  16. 16actCreate the access keyverify
  17. 17actGrant the key access to the bucketverify
  18. 18actS3 API health checkverify
  19. 19actInstall Caddy (only if a domain is provided and no reverse proxy)verify
  20. 20actHTTPS reverse proxy for the S3 API (only if a domain is provided)verify

SEC.02

What it verifies

Each step ships its own check. The run only moves on when the check passes, so what the recipe reports as done is what is actually on the server.

  1. 01Official Docker repository (only if Docker is missing)Verified bytest -s /etc/apt/keyrings/docker.asc -o -f /etc/yum.repos.d/docker-ce.repo && echo ok
  2. 02Declare the Docker apt source (Debian/Ubuntu, if Docker is missing)Verified bycat /etc/apt/sources.list.d/docker.list
  3. 03Install Docker Engine (if missing)Verified bysystemctl is-active docker && docker compose version
  4. 04Write /opt/garage/garage.toml (generated secrets)Verified bystat -c '%a %U' /opt/garage/garage.toml && grep -cE '^(rpc_secret|admin_token|metrics_token) = "[^"]+"' /opt/garage/garage.toml
  5. 05Write /opt/garage/compose.yamlVerified bydocker compose -f /opt/garage/compose.yaml config -q && echo ok
  6. 06Start GarageVerified bydocker ps --filter name=^garage$ --format "{{.Status}}" && docker exec garage /garage status
  7. 07Assign the single-node layoutVerified bydocker exec garage /garage layout show
  8. 08Apply the layoutVerified bycurl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:3903/health
  9. 09Create the first bucketVerified bydocker exec garage /garage bucket list
  10. 10Create the access keyVerified bystat -c '%a' /root/servor-garage-${key_name}.key && grep -ci 'secret' /root/servor-garage-${key_name}.key
  11. 11Grant the key access to the bucketVerified bydocker exec garage /garage bucket info ${bucket}
  12. 12S3 API health checkVerified bycurl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:3900/
  13. 13Install Caddy (only if a domain is provided and no reverse proxy)Verified bycaddy version && systemctl is-active caddy
  14. 14HTTPS reverse proxy for the S3 API (only if a domain is provided)Verified bycurl -s -o /dev/null -w '%{http_code}' --retry 6 --retry-delay 5 https://${domain}/

SEC.03

Guardrails

Non-negotiable instructions the run must respect, whatever it finds on the server.

Never regenerate an existing garage.toml: changing rpc_secret breaks the node. Never show garage.toml or /root/servor-garage-*.key. S3 API, RPC, web and admin on 127.0.0.1 only; only the S3 API is exposed, through a TLS reverse proxy and only if a domain is provided. Never run layout assign or apply on an already applied layout without reporting it. Capacity ≤ free disk space. Never delete /opt/garage/meta or /opt/garage/data. Single node = no replication: recommend an external backup.

SEC.04

Variables

What you choose before launching — the recipe fills in the rest.

NameMeaning
${bucket}First bucket
${key_name}Access key name
${capacity}Allocated capacity
${domain}S3 API domain (optional, enables HTTPS)

SEC.05

How a recipe runs in Servor

Servor is zero-knowledge: the platform cannot execute anything on its own. When you launch this recipe, a run reads the reconnaissance, plans the steps and asks for your approval. Each approved command is signed by your browser — with a key the server never sees — then relayed verbatim to the agent, which verifies the signature locally before executing.

recipe — fail2ban_setup150+ in catalogue
security4 steps · low risk · idempotentrun
reconsshd present? ufw active? existing jails?✓
actinstall fail2ban · write default jails✓
actenable service · restart sshd (safe)✓
verifytest ban 60s · jails active · sshd alive✓

search by intent — type “firewall”, get ufw

  • 01Read-only reconnaissance before any change
  • 02Every command signed by your browser, approved by you
  • 03Each step verified before the run moves on, every run kept in the history

SEC.06

Deploy on Servor button

Maintain Garage (S3 storage) or a project that needs it? Put this button in your README or on your site: one click and your users install it on their own server.

Deploy on ServorDark background
Deploy on ServorLight background
[![Deploy on Servor](https://servor.app/badges/deploy-on-servor.svg)](https://servor.app/deploy/install-garage)

SEC.07

Verified recipe

Run this recipe on your server

Connect a server, launch the recipe, and approve each step as Servor executes and verifies it. Free plan, no card required.