Installing Clovance
Clovance ships with cross-platform installers for Windows, Linux, and macOS. They check Docker, ask a few questions, generate the configuration, pull the images, and start the app.
🚀 Quick install
Linux / macOS:
curl -fsSL https://evaristocuesta.github.io/clovance/install/install.sh | sh
Windows (PowerShell):
irm https://evaristocuesta.github.io/clovance/install/install.ps1 | iex
You can also run the scripts directly from a local checkout:
# Linux / macOS
./docs/install/install.sh
# Windows
.\docs\install\install.ps1
📋 Prerequisites
- Docker (Docker Desktop on Windows/macOS, or Docker Engine on Linux).
- Docker Compose plugin v2 (
docker compose, not the legacydocker-compose). - The Docker daemon must be running.
The installer verifies these before doing anything else.
⚙️ Install parameters
During installation you will be prompted for the following values (defaults shown in brackets):
| Prompt | Default | Description |
|---|---|---|
| Install directory | ~/clovance (Linux/macOS), %USERPROFILE%\clovance (Windows) |
Where .env, docker-compose.yml, and data are stored. |
| Image version tag | latest |
Docker image tag to pull (e.g. 1.0.0). Note: tags do not include a leading v. |
| Frontend host port | 7000 |
Host port exposed for the Clovance UI. |
| API container port | 8080 |
Internal port of the API service. |
| Bind address (frontend) | 0.0.0.0 |
Interface the frontend binds to. Use 127.0.0.1 to restrict to localhost. |
| Bind address (dashboard) | 127.0.0.1 |
Interface the Aspire dashboard binds to. |
| PostgreSQL username | clovance |
Database user. |
| PostgreSQL password | (auto-generated) | Leave empty to generate a random password. |
| Configure SMTP | No (existing complete configuration defaults to Yes) |
Optional. If disabled, Clovance starts without email delivery. |
| SMTP host, port, username, password, and from address | Required only when SMTP is enabled; port defaults to 587 |
SMTP is used to send invitations and password-reset emails. |
| SMTP from name | Clovance |
Optional sender display name. |
| Frontend base URL | http://localhost:7000 |
Public URL of the frontend (used by the API). |
If you choose No, the installer leaves the SMTP host, username, password, and from address empty. Clovance will start, but it cannot send invitations or password-reset emails. You can enable SMTP later by filling in those four values in .env and recreating the API container. If you choose Yes, the installer requires the SMTP settings, including a password.
Data is stored under <install-dir>/data (Postgres data and the JWT key).
Re-running the installer over an existing installation uses the values in .env as prompt defaults and keeps the current PostgreSQL password (POSTGRES_PASSWORD is only used when the database is created). A complete SMTP configuration defaults to enabled; an incomplete one is reported and defaults to disabled unless you choose to complete it.
🔄 Update
To upgrade to a new version:
Linux / macOS:
curl -fsSL https://evaristocuesta.github.io/clovance/install/update.sh | sh
Windows (PowerShell):
irm https://evaristocuesta.github.io/clovance/install/update.ps1 | iex
Or, from a local checkout:
# Linux / macOS
./docs/install/update.sh
# Windows
.\docs\install\update.ps1
Both wrappers call install.sh update / install.ps1 update, so these are equivalent:
./install.sh update # Linux / macOS
.\install.ps1 update # Windows
You will be asked for the install directory and the new image version tag. The script backs up .env to .env.bak, updates the image tags, pulls the new images, and recreates the containers. It fails with an error (and keeps .env.bak) if the images cannot be pulled or the containers do not come back up.
🗑️ Uninstall
Linux / macOS:
curl -fsSL https://evaristocuesta.github.io/clovance/install/uninstall.sh | sh
Windows (PowerShell):
irm https://evaristocuesta.github.io/clovance/install/uninstall.ps1 | iex
Or, from a local checkout:
# Linux / macOS
./docs/install/uninstall.sh
# Windows
.\docs\install\uninstall.ps1
Both wrappers call install.sh uninstall / install.ps1 uninstall, so these are equivalent:
./install.sh uninstall # Linux / macOS
.\install.ps1 uninstall # Windows
The script stops and removes the containers, then asks:
- Remove data volumes (postgres + jwt)? — answer
yto delete the database and JWT key. - Remove generated config files (.env, docker-compose.yml)? — answer
yto clean up the configuration.
Nothing is deleted if the containers cannot be stopped first, and if Docker is not running the script aborts with an error instead of pretending to succeed.
Docker images are not removed. To delete them too:
docker image rm ghcr.io/evaristocuesta/clovance/clovance-api:latest ghcr.io/evaristocuesta/clovance/clovance-frontend:latest
On Linux/macOS, if the data directory was created by the container (root-owned), the script will try sudo automatically; if that fails, run sudo rm -rf <install-dir>/data manually.
🛠️ Troubleshooting
- Docker not running: start Docker Desktop / the Docker daemon and retry. The installers verify the daemon before writing any configuration and exit with an error if it is down.
- Compose v2 missing: upgrade Docker or install the Compose plugin.
- Permission denied on data removal (Linux): use
sudo rm -rf <install-dir>/data. - Port already in use: choose a different frontend port during install, or stop the conflicting service.
- The API restarts in a loop (Linux / WSL):
docker compose logs clovance-apiserviceshowsAccess to the path '/home/app/jwt.key' is denied. The API image runs as the unprivilegedappuser (uid 1654) and thedata/jwtbind mount keeps the host ownership, so the container cannot write its signing key. The installer now fixes this when it creates the directory; for an existing install runchmod 0777 <install-dir>/data/jwt(orsudo chown -R 1654:1654 <install-dir>/data/jwt) anddocker compose up -d. Docker Desktop on Windows/macOS is not affected because it does not enforce ownership on bind mounts. - The site loads but every API call returns
502 Bad Gateway:docker compose logs clovance-frontendshowsconnect() failed (111: Connection refused)against an IP that no longer belongs to the API container. Compose gives a recreated container a new IP, while nginx resolved theclovance-apiservicename only once, when it started. Restart just the frontend (docker compose restart clovance-frontend) instead of redeploying; current frontend images resolve the name on every request, so the mismatch only affects older ones. - “Clovance did not start correctly”: at least one container never became ready. The installer waits for every service to be
healthy(up to 5 minutes, tunable withCLOVANCE_VERIFY_TIMEOUT), so a container stuck inrestartingorunhealthyfails the install instead of reporting success. Checkdocker compose psanddocker compose logsin the install directory.
📚 Related documentation
- Docker Usage Guide - Manual Docker Compose setup, ports, reverse proxy.
- Docker Image Publishing - Publishing and deployment guide.