/ Installation guide

Install a licensed deployment

Everything runs on your server as a Docker Compose stack: the Savvina images come fromregistry.savvina.ai, signed in with your license key. You need two values in a settings file, a certificate, and two commands.

Before you start

  • The license key and organisation slug from your install email, or from the page you saw after purchase.
  • A server that meets the host requirements in the deployment guide.
  • Outbound HTTPS from that server to registry.savvina.ai (image downloads) and license.savvina.ai (the license check — setup cannot finish without it).

The host requirements are listed under Prerequisites in the deployment guide.

Sign in to the image registry

Use any username, and your license key as the password:

docker login registry.savvina.ai

Docker stores the key in ~/.docker/config.json for later pulls.

Download the Compose file and settings

mkdir savvina && cd savvina
curl -fsSLO https://savvina.ai/install/docker-compose.yml
curl -fsSL https://savvina.ai/install/env.example -o .env

The Compose file starts three containers: Savvina's own PostgreSQL database, the backend, and the web frontend, which serves HTTPS.

Fill in the two required settings

Open .env and set:

APP_URL=https://savvina.example.com
APP_DB_PASSWORD=<output of: openssl rand -hex 24>

APP_URL is the exact address people will type, including the port if it is not 443. If it differs, every form is refused with 403 Origin not allowed. To use another port, set APP_PORT as well, and add the port to APP_URL.

Use a database password without URL special characters such as @ or /; the command above gives one. The same file has optional settings for outgoing email (invitations and password resets).

Add a TLS certificate

Put your certificate and its private key in a certs folder next to the Compose file, as certs/server.crt and certs/server.key. To evaluate before you have one, create a self-signed certificate (browsers will warn about it):

mkdir -p certs
openssl req -x509 -newkey rsa:2048 -nodes -days 365 \
  -keyout certs/server.key -out certs/server.crt \
  -subj "/CN=localhost" -addext "subjectAltName=DNS:localhost"

Either way, give the key to the web server and to no one else. The web server runs as an unprivileged user (uid 100) inside its container. Without this the frontend restarts in a loop with Permission denied:

sudo chown 100 certs/server.key
sudo chmod 600 certs/server.key

The certificate, certs/server.crt, is public and can stay readable by everyone. To replace the key later, for example on renewal, write the new one with sudo (put sudo in front of the copy, or of the openssl command above), then run the two commands again so the web server can read it.

If TLS terminates at a load balancer or reverse proxy in front of Savvina, see the deployment guide for TRUSTED_LB_CIDR.

Pull and start

docker compose pull
docker compose up -d
docker compose ps

All three containers should show healthy within a couple of minutes; the database migrations run on every start. If one does not, read its log, for example docker compose logs backend --tail 30.

Create the admin account

Open your APP_URL. The Create Admin Account screen asks for:

  • The organisation slug, exactly as issued (for example acme-corp) — not your organisation's display name.
  • The license key, starting with savvina_.
  • The email and password of the first administrator.

Savvina checks the key with license.savvina.ai before creating the account.A license runs one deployment: the first one to complete this screen holds it, and another deployment presenting the same key is refused. To move to new hardware later, contact [email protected].

A setup wizard then helps you connect a database and add an LLM provider.

Updates and backups

To update to the newest release, in the same folder:

docker compose pull
docker compose up -d

Back up two things together: the database, and the backend's data volume, which holds the encryption key. Without that key, the database credentials Savvina has stored cannot be decrypted.

docker compose exec -T db pg_dump -U savvina savvina_app | gzip > savvina-db-$(date +%F).sql.gz
docker compose cp backend:/app/data/secrets.env ./secrets.env.backup

Keep secrets.env.backup as carefully as the license key.

Stuck on a step? Email [email protected] with the output of docker compose ps and the failing container's log.