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:
| Service | Role |
|---|---|
| Core | The application: web interface and API. It is the only service users reach. |
| Identity | Accounts, sessions, passwords and single sign-on. |
| Business database | PostgreSQL database holding organisations, catalogues, diagrams, inventories and feedback. |
| Identity database | PostgreSQL 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:
- generates the database and administrator passwords once, in a private environment file (readable by you only);
- starts PostgreSQL, the identity service and the Core with Docker Compose;
- 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 startInstall for production
- Secrets. Create the database passwords and the identity secrets in your secret manager, never in the Compose file or in a ticket.
- Origin. Set
PUBLIC_ORIGINto the HTTPS address users will open, for examplehttps://scalengi.example.com. The Core refuses a plain HTTP origin in production. - 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. - Databases. Start the two PostgreSQL databases, then apply the schema with the migration command (see Upgrades).
- Start. Start the identity service and the Core, and wait for their health checks.
- 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.