Install with Docker Compose

Scalengi is self-hosted. It runs as a set of containers started with Docker Compose, on one server or on your own platform.

What gets installed

A Scalengi installation is made of four services:

ServiceRole
CoreThe application: web interface and API. It is the only service users reach.
IdentityAccounts, sessions, passwords and single sign-on.
Business databasePostgreSQL database holding organisations, catalogues, diagrams, inventories and feedback.
Identity databasePostgreSQL database holding accounts and sessions.

Redis is optional. It is only needed when you run several Core instances side by side; one instance works without it.

Requirements

  • A Linux server (or a workstation for an evaluation) with Docker and Docker Compose 2.24 or later.
  • 2 CPU cores and 4 GB of memory are a comfortable start for a team; databases grow with your content.
  • For production: a domain name, a HTTPS certificate and a reverse proxy in front of the Core.

Get the release

The container images and the Compose files are provided with each Scalengi release, as an archive. Unpack it in a directory of your server, for example /opt/scalengi. The archive also contains a start script and the release notes.

Evaluate on one machine

For a first look, the start script supplied with the release:

  1. generates the database and administrator passwords once, in a private environment file (readable by you only);
  2. starts PostgreSQL, the identity service and the Core with Docker Compose;
  3. prints the administrator’s sign-in address and password.

The interface is then served on http://localhost:8080. Another port can be chosen with the SCALENGI_PORT variable before the first start.

To stop and restart the evaluation without losing data, use Docker Compose from the release directory:

docker compose -f deploy/compose.quickstart.yml stop
docker compose -f deploy/compose.quickstart.yml start

Install for production

  1. Secrets. Create the database passwords and the identity secrets in your secret manager, never in the Compose file or in a ticket.
  2. Origin. Set PUBLIC_ORIGIN to the HTTPS address users will open, for example https://scalengi.example.com. The Core refuses a plain HTTP origin in production.
  3. Network. Publish only the reverse proxy. Keep both databases and the identity service on a private network. If the proxy forwards client addresses, list its exact IP addresses in TRUSTED_PROXY_IPS.
  4. Databases. Start the two PostgreSQL databases, then apply the schema with the migration command (see Upgrades).
  5. Start. Start the identity service and the Core, and wait for their health checks.
  6. First sign-in. Continue with First sign-in.

The images run without root privileges, with a read-only file system and bounded resources. Keep these settings when you adapt the Compose files to your platform.

After the installation

  • Plan backups before the first real content.
  • Configure single sign-on if your company uses Microsoft Entra ID or another OpenID Connect provider.