Installation
Install RST Index from the offline package, run install.sh, add the updater later if needed, set the access URL and port, and verify the service.
Each release ships two offline packages, rstnav-<version>-linux-amd64.tar.gz and rstnav-<version>-linux-arm64.tar.gz, each with a .sig signature file of the same name. Some technical identifiers (environment variables, package and service names) keep the earlier name rstnav. Package contents:
| File | Purpose |
|---|---|
images.tar.gz | Portal image and MySQL 8.4 image |
docker-compose.yml | Service definitions |
.env.example | Environment template; .env is created from it during installation |
config.yaml | Service configuration: sessions, database, availability checks, identity sources |
install.sh | Installer |
updater/ | Updater program and systemd unit file |
Steps
-
Upload the package to the server and extract it where the installation directory should live:
tar xzf rstnav-<version>-linux-amd64.tar.gz cd rstnav-<version>-linux-amd64 -
Run the installer as root:
sudo ./install.shThe installer checks for Docker, the Compose plugin and
/etc/machine-id, loads the images, creates.env(random database passwords, session secret andadmininitial password, mode 600), installs the updater, checks the port and runsdocker compose up -d. It prints the access address when done. -
Edit
.envand set the access URL,RSTNAV_BASE_URL, to the address staff use. Editconfig.yamlto enable LDAP, OIDC, CAS, SAML or Feishu as needed. Then recreate the containers:vi .env vi config.yaml docker compose up -d -
Verify:
docker compose ps curl http://<server>:8080/healthzA response of
{"status":"ok","version":"<version>"}means the service is running. -
Sign in as
adminwith the initial password,RSTNAV_ADMIN_PASSWORDin.env.
The extracted directory is the installation directory. It holds .env, config.yaml, the updater/ directory used for upgrades and the database backups in backups/. All later upgrades run from this directory. The database volume name does not depend on the directory.
Port already in use
If the default port 8080 is taken by another container or program, the installer stops before starting any service and names what holds the port. Change RSTNAV_PORT in .env (and the port in the access URL), then run in the installation directory:
docker compose up -dInstalling without root
Installation also completes without root, but the updater is not installed. One-click upgrades from the admin console are then unavailable, and you upgrade manually with offline packages. To add the updater later:
sudo ./install.sh updater <installation-directory>The updater is a systemd service that runs as root. Its service name is rstnav-updater: check its status with systemctl status rstnav-updater and its logs with journalctl -u rstnav-updater. System > Updates in the admin console also shows whether the updater is running.
Existing data on the host
If you run install.sh in a new directory without a .env, and the host already has the database volume rstnav_mysql-data, the installer stops with a message. The host already has an installation, so upgrade from the original installation directory instead. See Upgrade and backup.
After installation
- Connect company accounts: AD/LDAP, single sign-on, Feishu.
- Serve over HTTPS and tune availability checks: Configuration reference.
- Complete the first configuration under General > Quick setup in the admin console. See Overview and quick setup.
Requirements and network
Check the server architecture, Docker version, machine-id, browsers and identity sources before installing, and the inbound and outbound connections to allow.
Configuration reference
What each entry in .env and config.yaml in the installation directory does, how changes take effect, and the settings needed to serve the portal behind an HTTPS reverse proxy.