Skip to main content

Install with Docker Compose

This is the supported production installation. It is a released bundle of container images: the gateway, the configuration editor, Node-RED and Redis. A docker-compose.yml that Sterfive publishes connects the images. Nothing is built on your machine.

Before you start​

  • A Linux server, or Windows with WSL2.
  • Docker Engine 24+ and the Docker Compose plugin.
  • Node.js 20.12+ on the host, for the npm run scripts. This is optional: each command has a docker compose equivalent.
  • A registry deploy token from Sterfive (support@sterfive.com).

To install Docker Engine, run:

curl -fsSL https://get.docker.com | sudo sh
sudo systemctl enable --now docker
sudo usermod -aG docker "$USER" # then log out and back in

Run docker compose version. Write a space between docker and compose. Compose v1 (docker-compose with a hyphen) does not support this bundle.

How to install​

  1. Download and extract the bundle.

    On Linux:

    curl -fsSL https://deploy.sterfive.com/install/opcua-omni-edge.sh | bash

    On Windows:

    powershell -c "irm https://deploy.sterfive.com/install/opcua-omni-edge.ps1 | iex"

    The installer reads the release manifest, downloads the bundle, verifies its SHA-256 and extracts it. Set INSTALL_DIR to choose the folder. Set VERSION to choose a release.

  2. Go to the bundle folder:

    cd opcua-omni-edge
  3. Start the services:

    npm run up

    On the first run, npm run up creates .env and .env.secrets from the templates and creates the data folders. It also logs in to the Sterfive registry. Enter your deploy token when it asks. For an unattended install, set STERFIVE_REGISTRY_USER and STERFIVE_REGISTRY_TOKEN.

  4. Look at the state of the services:

    npm run ps

    The gateway loads every OPC UA nodeset before it opens its port. The first start takes about 1 minute.

tip

You do not need a licence key to start. Without a key, the gateway runs in demo mode for 2 hours, then pauses for 8 hours, then starts again. A restart of the container does not reset the demo clock. To remove the limit, contact sales@sterfive.com. To find other problems, run npm run doctor.

How to check that it works​

  1. Run npm run ps. Wait until the gateway shows healthy.
  2. Connect an OPC UA client to opc.tcp://<host>:4840.
ServiceWhere
OPC UA endpointsopc.tcp://<host>:4840 to :4843
Configuration editorhttp://localhost:3030
Node-REDhttp://localhost:1880

If OPC UA clients use another host name or port, set OMNI_EDGE_ADVERTISED_ENDPOINTS in .env. This applies to a remapped OMNI_EDGE_PORT_4840, to NAT and to a proxy. If you cannot open an inbound port, set OMNI_EDGE_REVERSE_CONNECT. The gateway then connects out to the OPC UA client. See the OPC UA server.

Security​

The configuration editor can rewrite the configuration file. The editor asks for a login. Only a user with the ConfigureAdmin role can log in. Node-RED has no built-in authentication.

warning

The bundle publishes the editor and Node-RED on 127.0.0.1 only. Use an SSH tunnel to reach them, or an authenticating reverse proxy. Do not expose them to the plant network. The README.md of the bundle describes both methods and the creation of the first editor user.

Day-to-day commands​

CommandEffect
npm run logsFollows the logs.
npm run psShows the services and their health.
npm run downStops the services and releases the licence seat.
npm run updateUpgrades to the latest published release.
npm run backupArchives the configuration, the PKI, the flows and the licence state.
npm run doctorDiagnoses engine, configuration and registry problems.

How to update​

  1. Read the upgrade notes of the new version in CHANGELOG.md.
  2. Run npm run update.

:::warning Upgrade past 3.8.0

Trusted X509 user certificates move from certificates/ApplicationPKI/trusted/certs to certificates/UserPKI/trusted/certs. If users log in with certificates, copy the certificates before you restart. If you do not, the gateway rejects them.

:::

How to back up​

Run npm run backup.

The README.md of the bundle has the full reference: upgrades, the content of a backup, the licence volume, the reverse proxy and the docker compose equivalent of each command.