Skip to main content

RCOM Gateway Installation Guide

This guide walks you through installing the RCOM Gateway on a Linux server using Docker Compose, with optional support for TLS-secured access. Use this guide for fresh installations or upgrades.

Prerequisites

If you are upgrading from a previous version:

Important

Do not delete Docker volumes. This ensures your existing database data remains intact.

Stop running services

docker compose --profile rabbitmq --profile postgres --profile mosquitto down 

Backup your current installation directory

mv /home/Gateway /home/Gateway_backup_$(date +%F_%T) 

Step 1: Download the Latest RCOM Gateway Package

Use the command below to download and extract the latest version:

wget -O rcom_gateway_compose.zip {{DOWNLOAD_URL}}
unzip rcom_gateway_compose.zip -d /home/Gateway/

Step 2: Prepare Runtime Directories

Create necessary directories and apply correct permissions:

cd /home/Gateway/
sudo mkdir -p ./tmp/api/download ./tmp/api/rcom
sudo chown -R 1001:1001 ./tmp/api
sudo chmod -R 775 ./tmp/api

Step 3: Configure Environment Variables

Edit the .env file located in /home/Gateway/ and set the required variables.

Example:

AI2_IMAGE_VERSION_BE=3cb232ad
AI2_IMAGE_VERSION_FE=77d2c4ae

Optional: Enable TLS (HTTPS for Web Interface)

In .env, set:

TLS_ENABLE=true 

Place your certificate files in /home/Gateway/certificates/:

  • nginx.key – Private key
  • nginx.pem – Certificate

(Optional) To use custom filenames:

TLS_KEY_FILE_NAME=my_custom.key
TLS_CERT_FILE_NAME=my_custom.pem
info

TLS is disabled by default. Only enable it if HTTPS is required.

Step 4: Authenticate with Docker Repository

Log in to the private container registry:

docker login www.rcom-repository.de -u 'robot$rcom_gateway+rcom_pull' -p '<Docker Auth Token>' 

Step 5: Pull and Start the Gateway Services

Download container images and start services:

docker compose --profile rabbitmq --profile postgres --profile mosquitto pull
docker compose --profile rabbitmq --profile postgres --profile mosquitto up -d
info

Your RCOM Gateway instance is now live and running. If TLS is enabled, it will serve the interface securely over HTTPS.

Stopping Services

To safely shut down the gateway:

docker compose --profile rabbitmq --profile postgres --profile mosquitto down 

Final Notes

info
  • Docker volumes are preserved by default. No risk to your existing database.

  • TLS is fully optional. Ensure certificates are valid and correctly formatted if used.

  • You can update the .env file at any time to adjust environment-specific configurations.