Skip to main content
Installation

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:

FilePurpose
images.tar.gzPortal image and MySQL 8.4 image
docker-compose.ymlService definitions
.env.exampleEnvironment template; .env is created from it during installation
config.yamlService configuration: sessions, database, availability checks, identity sources
install.shInstaller
updater/Updater program and systemd unit file

Steps

  1. 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
  2. Run the installer as root:

    sudo ./install.sh

    The installer checks for Docker, the Compose plugin and /etc/machine-id, loads the images, creates .env (random database passwords, session secret and admin initial password, mode 600), installs the updater, checks the port and runs docker compose up -d. It prints the access address when done.

  3. Edit .env and set the access URL, RSTNAV_BASE_URL, to the address staff use. Edit config.yaml to enable LDAP, OIDC, CAS, SAML or Feishu as needed. Then recreate the containers:

    vi .env
    vi config.yaml
    docker compose up -d
  4. Verify:

    docker compose ps
    curl http://<server>:8080/healthz

    A response of {"status":"ok","version":"<version>"} means the service is running.

  5. Sign in as admin with the initial password, RSTNAV_ADMIN_PASSWORD in .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 -d

Installing 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

On this page