Quick Start
This walkthrough covers the most common first steps: discovering existing apps, checking status, deploying an app, running health checks, and initialising the secrets vault.
1. Auto-discover existing apps
If you already have Docker Compose apps on the server, fleet init scans for them and registers each one:
sudo fleet initFleet looks for docker-compose.yml files, generates a systemd service unit for each app, and adds them to the registry at data/registry.json.
2. Check the dashboard
sudo fleet statusOutput:
Fleet Dashboard3 apps | 2 healthy | 1 unhealthy
APP SYSTEMD CONTAINERS HEALTHmyapp active 2/2 ✓ healthyapi active 1/1 ✓ healthyworker failed 0/1 ✗ down3. Deploy an app
Point fleet deploy at the directory containing your docker-compose.yml:
sudo fleet deploy /srv/myappFleet will:
- Register the app if it is not already in the registry
- Run
docker compose build - Start (or restart) the systemd service
4. Run health checks
sudo fleet healthCheck a single app:
sudo fleet health myappHealth checks cover systemd unit state, container running status, and an optional HTTP endpoint if healthPath is set in the registry.
5. Initialise the secrets vault
sudo fleet secrets initThis generates an age keypair at /etc/fleet/age.key, writes the public key to the manifest, and installs a fleet-unseal.service systemd unit that decrypts secrets to /run/fleet-secrets/ on boot.
Once the vault is initialised, import an existing .env file:
sudo fleet secrets import myapp /srv/myapp/.envCheck vault status at any time:
sudo fleet secrets statusNext steps
- See the CLI Reference for all available commands
- Set up nginx for a domain
- Configure the MCP server for Claude Code integration