Installers
Every flag of the Deplo installer, the server installer and the uninstaller, and the settings in /opt/deplo/.env.
Three scripts, all run as root on the server:
| Script | Use it to |
|---|---|
install.sh | Install Deplo, or update it in place |
install-agent.sh | Add a server, with the command from Settings -> Servers |
uninstall.sh | Remove a server's agent, or Deplo itself |
Install Deplo
curl -fsSL https://deplo.build/install.sh | bashWith no flag it asks nothing and serves Deplo on a free address like
deplo-cb00710a.deplo.site. Flags go after bash -s --:
curl -fsSL https://deplo.build/install.sh | bash -s -- --domain deplo.example.comProp
Type
--owner-email is how a hosting provider ships Deplo preinstalled: see
Offer Deplo to your customers.
These stop the run
Unless you pass --force:
- A CPU other than
x86-64orarm64, Bash older than 4, or nocurloropenssl. - Less than 8 GB free on
/. - Ports
80,443or3000taken by something that is not Deplo. - No outbound HTTPS to
ghcr.io, or toget.docker.comwhen Docker has to be installed. - Docker installed but not answering, or without Compose v2.
A small machine only gets a warning: see Server requirements.
Inspect before running
Download the script, read it, then run it:
curl -fsSL https://deplo.build/install.sh -o install.sh
less install.sh
sudo bash install.shWhat the installer changes on your machine
- Installs Docker and
gitif they are missing. - Creates
/opt/deplo, with the settings and secrets in/opt/deplo/.env. - Starts Deplo, its database and the Traefik proxy, which answers on ports
80and443. - Widens Docker's address pools in
/etc/docker/daemon.json, unless you set your own. Your original file is kept asdaemon.json.deplo-bak. - Adds the
deplocommand:deplo update,deplo logs,deplo restartanddeplo recover. - Adds this machine as your first server.
Running it again on a machine with Deplo updates it, and never changes a secret.
Add a server
Copy the command from Settings -> Servers -> Add server and run it on the new machine: it
carries a one-time token. To check the machine first, append --check:
curl -fsSL 'https://deplo.example.com/install-agent.sh' --output /tmp/deplo-agent-install.sh && echo '<token>' | sudo bash /tmp/deplo-agent-install.sh - 'https://deplo.example.com' '<fingerprint>' --checkProp
Type
It needs systemd and at least 5 GB free on /, and installs Docker if it is missing. Follow the
server afterwards with journalctl -u deplo-agent -f. The install transcript is in
/var/log/deplo-agent-install.log.
Uninstall
curl -fsSL https://deplo.example.com/uninstall.sh | sudo bash -s -- --yesWhich flags to pick: Remove a server or uninstall.
Prop
Type
--purge-data deletes /opt/deplo/.env
Deplo's backups are encrypted with a key that depends on it. Copy the file first if you may ever restore one.
It never removes Docker and is safe to run twice. If Deplo itself does not answer, the same script
is at https://deplo.build/uninstall.sh.
Settings in /opt/deplo/.env
The installer writes this file once. Edit it, then apply the change:
docker compose -f /opt/deplo/docker-compose.yml --env-file /opt/deplo/.env up -dProp
Type
Variables read by Deplo
These go under environment: of the deplo service in /opt/deplo/docker-compose.yml, applied
with the same command:
Prop
Type
An update rewrites docker-compose.yml
Add these lines again after each update.
Did this page help you?