Skip to Content

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:

ScriptUse it to
install.shInstall Deplo, or update it in place
install-agent.shAdd a server, with the command from Settings -> Servers
uninstall.shRemove a server's agent, or Deplo itself

Install Deplo

curl -fsSL https://deplo.build/install.sh | bash

With 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.com

Prop

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-64 or arm64, Bash older than 4, or no curl or openssl.
  • Less than 8 GB free on /.
  • Ports 80, 443 or 3000 taken by something that is not Deplo.
  • No outbound HTTPS to ghcr.io, or to get.docker.com when 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.sh

What the installer changes on your machine

  • Installs Docker and git if 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 80 and 443.
  • Widens Docker's address pools in /etc/docker/daemon.json, unless you set your own. Your original file is kept as daemon.json.deplo-bak.
  • Adds the deplo command: deplo update, deplo logs, deplo restart and deplo 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>' --check

Prop

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 -- --yes

Which 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 -d

Prop

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?

On this page