Skip to content

Container Installation

This guide provides comprehensive instructions for installing and running the Sicura Console as a container. The documentation is organized into logical sections:

Container Images

Each release of the Sicura Console ships as two container images in our container registry:

  • Sicura Console — the current Console, tagged <version>-rails. Use it for new installations.
  • Classic Console — the earlier Console, tagged <version>. The latest tag points to the most recently published Classic Console release. Existing installations run on it; from 2026.11.0 they can move to the Sicura Console (see Moving from the Classic Console).

Both images serve the same web interface, but they are configured differently. Where a page of this documentation applies to only one image, it says so.

Pull the Sicura Console image by its version tag with -rails appended (for example, 2026.11.0-rails). It has no latest tag:

registry.customers.sicura.us/products/sicura-console:2026.11.0-rails

To pull the Classic Console:

registry.customers.sicura.us/products/sicura-console:2026.11.0
registry.customers.sicura.us/products/sicura-console:latest

IMPORTANT: Give the Sicura Console new, empty databases, never a Classic Console installation's database; it does not read the Classic Console's database or its sicura-console.yaml. To bring an existing Classic Console installation's data across, import it as Moving from the Classic Console describes.

Requirements

PostgreSQL Server

A PostgreSQL server, version 15 or newer, is required in order to run the Console. A production implementation of PostgreSQL is recommended.

IMPORTANT: The 2025.5.0 release requires a fresh database. Migrating data from earlier releases or RPM-based installations is not supported, so if you're coming from one of those, create a new database and reconfigure your environment. Container releases from 2025.5.0 on upgrade an existing database in place to a later release of the same image; to move an existing Classic Console installation to the Sicura Console, see Moving from the Classic Console.

Databases Used by the Sicura Console Image

The Sicura Console keeps its data in three databases on the PostgreSQL server: the main database named by DB_DATABASE, plus a job-queue database and a cache database. These are named sicura_console_production_queue and sicura_console_production_cache unless you set DB_QUEUE_DATABASE and DB_CACHE_DATABASE. The Classic Console uses only the main database.

On first start, the Sicura Console creates any of the three that do not exist. Either let it do so by giving its database user the CREATEDB attribute, or create all three yourself, owned by that user:

psql -U postgres <<END
CREATE USER sicura_console WITH ENCRYPTED PASSWORD 'your-secure-password';
CREATE DATABASE sicura_console OWNER sicura_console;
CREATE DATABASE sicura_console_production_queue OWNER sicura_console;
CREATE DATABASE sicura_console_production_cache OWNER sicura_console;
END

The options below create the main database only, with a user that can't create databases. Before you start the Sicura Console for the first time, create the other two databases the same way, or give the user the CREATEDB attribute.

IMPORTANT: If the first start fails with permission denied to create database, the Sicura Console has already loaded its tables into the main database, and it does not finish setting up on a later start: nobody can sign in. Drop and re-create the main database, create the other two, and start the Console again.

Option 1: Using an Existing PostgreSQL Server

If you have an existing PostgreSQL server, create a new database and user for Sicura Console:

# Connect to your PostgreSQL server
psql -U postgres

# Create a new user and a database it owns
CREATE USER sicura_console WITH ENCRYPTED PASSWORD 'your-secure-password';
CREATE DATABASE sicura_console OWNER sicura_console;

Option 2: Installing PostgreSQL on RHEL/CentOS

To install PostgreSQL on a Red Hat/CentOS server:

  1. Install PostgreSQL. On RHEL 8 and RHEL 9 the default version is older than 15, so enable a newer module stream first:

    dnf -y module enable postgresql:16
    

    Then install it, and check with postgres --version that it is version 15 or newer:

    yum -y install postgresql-server
    

  2. Initialize the database.

    postgresql-setup initdb
    

  3. Enable password authentication for localhost.

    sed -i \
        -e '/^host\s*all\s*all\s*[0-9:./]*\s*ident$/ s|ident|md5|' \
        /var/lib/pgsql/data/pg_hba.conf
    

  4. Enable and start the database service.

    systemctl enable postgresql --now
    

  5. Create a database and user for Sicura Console.

    runuser -l postgres -c "psql" <<END
    CREATE USER sicura_console WITH ENCRYPTED PASSWORD 'your-secure-password';
    CREATE DATABASE sicura_console OWNER sicura_console;
    END
    

Option 3: Using PostgreSQL in a Container

Alternatively, you can run PostgreSQL in a container:

docker run --name postgres \
  -p 5432:5432 \
  -e POSTGRES_USER=sicura_console \
  -e POSTGRES_PASSWORD=your-secure-password \
  -e POSTGRES_DB=sicura_console \
  -v postgres_data:/var/lib/postgresql/data \
  --restart unless-stopped \
  -d postgres:17

Sicura Console Environment Variables

The Sicura Console is configured entirely through environment variables. It does not read sicura-console.yaml, SICURA_CONFIG, SICURA_LICENSE_KEY or the other SICURA_* variables the Classic Console uses.

Required

  • DB_HOST: PostgreSQL server host
  • DB_PORT: PostgreSQL server port
  • DB_USER: Database user
  • DB_PASSWORD: Database password
  • DB_DATABASE: Main database name
  • SECRET_KEY_BASE: The Console's secret key; see Secret Key Base. The Console does not start without it.

Optional

  • ADMIN_PASSWORD: Password for the built-in admin account, applied when the Console sets up its database on first start. Without it the password is ChangeMe123!. Changing it after that first start has no effect; change the password under Access Management -> Users instead.
  • DB_QUEUE_DATABASE, DB_CACHE_DATABASE: Names of the job-queue and cache databases (see Databases Used by the Sicura Console Image)
  • DB_QUEUE_HOST, DB_CACHE_HOST: Servers for the job-queue and cache databases, when they are not on DB_HOST
  • DB_SSLMODE: TLS mode for the database connections (default require, which encrypts the connection without verifying the server; verify-full also verifies the server's certificate and host name)
  • DB_SSLROOTCERT: Path to the CA certificate that signed the database server's certificate. File must be mounted during run.

See Encrypting the Database Connection. Client-certificate authentication and the other TLS settings are described in Certificate Authentication and Additional Connection Settings.

Secret Key Base

SECRET_KEY_BASE is a random string of at least 64 hexadecimal characters, for example from openssl rand -hex 64. The Console derives the key that encrypts sensitive database fields, and the key that signs login sessions, from it. Generate it once per installation, store it as a secret, and keep it across restarts and upgrades. If it changes, data already encrypted can no longer be read and every user is logged out. Do not share it between installations.

License and HTTPS

The Sicura Console takes no license variable. After the first sign-in, upload your Sicura license on the License page; see Licenses.

The Sicura Console serves plain HTTP on port 80. To serve HTTPS, put a TLS-terminating reverse proxy in front of it, as the SSL deployment does.

Classic Console Environment Variables

Environment variables are used to customize the Classic Console.

Required

License Key

The Classic Console needs a valid License Key, a PEM-encoded certificate, set with one of the following variables. The Sicura Console does not read them; see License and HTTPS.

  • SICURA_LICENSE_KEY: A valid Sicura License Key as a String.
  • SICURA_LICENSE_KEY_FILE: A path to a valid Sicura License Key. File must be mounted during run.

Database

The PostgreSQL Server database information from above is required to be set using the following variables:

  • DB_USER: Postgres Database User
  • DB_PASSWORD: Postgres Database Password
  • DB_HOST: Postgres Database Host
  • DB_PORT: Postgres Database Port
  • DB_DATABASE: Postgres Database Name

The connection to the database requires TLS by default (DB_SSLMODE=require), and the Classic Console does not start if the PostgreSQL server does not accept TLS connections. Either enable TLS on the server, or set DB_SSLMODE=disable. Set the TLS mode and CA certificate with DB_SSLMODE and DB_SSLROOTCERT; see Encrypting the Database Connection.

Config

The admin password, and any other Classic Console settings (the main.* options of sicura-console.yaml), are set with one of the following variables:

  • SICURA_CONFIG: The settings as a YAML hash.
  • SICURA_CONFIG_FILE: A path to a config file holding the settings. File must be mounted during run.

If both are set, the Console uses SICURA_CONFIG. These settings are applied last, so a database setting given here overrides the one from the DB_* variables. Directory services given here are added to those from the SICURA_DIRECTORY_SERVICES variables.

The built-in admin account has no password until you set main.default_admin_password this way, and nobody can sign in until then. See Setting the Admin Password.

Optional

Directory Services

Directory Services can be set with one of the following variables. If both are set, the Console uses SICURA_DIRECTORY_SERVICES. See Authentication Providers for the settings of each service.

  • SICURA_DIRECTORY_SERVICES: The list of directory services as YAML, without the main.directory_services key.
  • SICURA_DIRECTORY_SERVICES_FILE: A path to a YAML file that holds the list under the main.directory_services key. File must be mounted during run.

HTTPS

The Classic Console serves plain HTTP on port 80. To serve HTTPS, put a TLS-terminating reverse proxy in front of it, as the SSL deployment does. The SICURA_SSL_KEY and SICURA_SSL_CERT variables do not make the Console serve HTTPS.

Running the Console Container

This section provides different options for running the Console container based on your deployment needs. The first runs the Sicura Console. The numbered options run the Classic Console, which takes its license through SICURA_LICENSE_KEY or SICURA_LICENSE_KEY_FILE and its admin password through SICURA_CONFIG or SICURA_CONFIG_FILE; to run the Sicura Console the same ways, use the <version>-rails image, drop the SICURA_* variables and sicura-console.yaml, add SECRET_KEY_BASE and ADMIN_PASSWORD, and upload the license on the License page after the first sign-in.

Running the Sicura Console Image

Generate the secret key once and store it where you keep other secrets:

openssl rand -hex 64 > /path/to/secret_key_base
chmod 600 /path/to/secret_key_base

Then start the Console:

docker run --name sicura-console -p 80:80 -d \
  -e DB_USER="sicura_console" \
  -e DB_PASSWORD="your-secure-password" \
  -e DB_HOST="your-db-host" \
  -e DB_PORT="5432" \
  -e DB_DATABASE="sicura_console" \
  -e SECRET_KEY_BASE="$(cat /path/to/secret_key_base)" \
  -e ADMIN_PASSWORD="your-admin-password" \
  --restart unless-stopped \
  registry.customers.sicura.us/products/sicura-console:2026.11.0-rails

Starting with 2026.11.0 the connection to PostgreSQL requires TLS by default. If your database server does not accept TLS connections, add -e DB_SSLMODE=disable, or better, enable TLS on the server; see Encrypting the Database Connection.

On first start the Console creates and prepares its databases, which can take a minute. Then sign in as admin and upload your license on the License page.

Option 1: Basic Classic Console Deployment

The simplest way to start the Classic Console container. Replace <password-hash> with the hash of the admin password, generated as Setting the Admin Password describes, and keep the single quotes around the SICURA_CONFIG value so the shell leaves the hash as it is:

docker run --name sicura-console -p 80:80 --rm -d \
  -e SICURA_LICENSE_KEY="your-license-key-here" \
  -e SICURA_CONFIG='main.default_admin_password: "<password-hash>"' \
  -e DB_USER="sicura_console" \
  -e DB_PASSWORD="your-secure-password" \
  -e DB_HOST="your-db-host" \
  -e DB_PORT="5432" \
  -e DB_DATABASE="sicura_console" \
  registry.customers.sicura.us/products/sicura-console:2026.11.0

On first start the Classic Console prepares its database and loads its compliance content, which can take a few minutes. It is ready when curl http://localhost/readiness returns status 200.

The Classic Console requires TLS on the connection to PostgreSQL. If your database server does not accept TLS connections, the Console does not start; add -e DB_SSLMODE=disable, or better, enable TLS on the server. See Encrypting the Database Connection. The same applies to the next two options.

Option 2: Classic Console with a Volume Mount for Configuration

For a Classic Console deployment that keeps its license and settings in files:

# Create configuration directory
mkdir -p /path/to/config

# Create or copy your license key
echo "your-license-key" > /path/to/config/license.key

# Create sicura-console.yaml with your settings, including the admin password.
# Keep the single quotes, so the shell leaves the hash as it is.
echo 'main.default_admin_password: "<password-hash>"' > /path/to/config/sicura-console.yaml

# The Console runs as user ID 1000 inside the container and must be able to read both files
chmod 755 /path/to/config
chmod 644 /path/to/config/license.key /path/to/config/sicura-console.yaml

# Run container with the mounted configuration
docker run --name sicura-console -p 80:80 -d \
  -v /path/to/config:/etc/sicura/config \
  -e SICURA_LICENSE_KEY_FILE=/etc/sicura/config/license.key \
  -e SICURA_CONFIG_FILE=/etc/sicura/config/sicura-console.yaml \
  -e DB_USER="sicura_console" \
  -e DB_PASSWORD="your-secure-password" \
  -e DB_HOST="your-db-host" \
  -e DB_PORT="5432" \
  -e DB_DATABASE="sicura_console" \
  --restart unless-stopped \
  registry.customers.sicura.us/products/sicura-console:2026.11.0

Option 3: Classic Console with Docker Compose

For more complex deployments integrating both PostgreSQL and the Classic Console, Docker Compose is recommended:

services:
  db:
    image: postgres:17
    environment:
      POSTGRES_USER: sicura_console
      POSTGRES_PASSWORD: your-secure-password
      POSTGRES_DB: sicura_console
    volumes:
      - postgres_data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U sicura_console -d sicura_console"]
      interval: 5s
      retries: 12
      start_period: 30s
    restart: unless-stopped

  console:
    image: registry.customers.sicura.us/products/sicura-console:2026.11.0
    ports:
      - "80:80"
    environment:
      SICURA_LICENSE_KEY: "${SICURA_LICENSE_KEY}"
      SICURA_CONFIG_FILE: "/etc/sicura/config/sicura-console.yaml"
      # Alternatively, mount the license key as a file too:
      # SICURA_LICENSE_KEY_FILE: "/etc/sicura/config/license.key"
      DB_USER: "sicura_console"
      DB_PASSWORD: "your-secure-password"
      DB_HOST: "db"
      DB_PORT: "5432"
      DB_DATABASE: "sicura_console"
      # The db service above does not accept TLS connections
      DB_SSLMODE: "disable"
    volumes:
      - ./config:/etc/sicura/config
    depends_on:
      db:
        condition: service_healthy
    restart: unless-stopped

volumes:
  postgres_data:

Save this as docker-compose.yml. Next to it, create config/sicura-console.yaml with your settings, including the admin password, and make it readable as in Option 2. Then run:

docker compose up -d

The console service waits for the database's health check, because the Classic Console does not start if PostgreSQL is not yet accepting connections.