Skip to main content

DMN Hub Installation

Docker Setup

To run DMN Hub, you must install Docker and Docker Compose.

Install

To install Docker / Compose, visit the Docker website and choose the version specific to your Operating System (Mac, Windows, or Linux), and download the file.

Download the Desktop version or use the Installer to install via terminal.

Verification

To check if both Docker and Docker Compose are installed, run the following commands in the terminal:

docker
docker compose

DMN Hub Setup

To set up DMN Hub, follow these steps:

Pull Docker Image

First, you will have to PULL to connect to the DMN Hub.

docker pull ${name}/dmn_hub_container

Docker Configuration

Compose File:

Postgres Data Base Setup

To set up your local Data Base, specify the following path in the compose file (located in docker-compose.yml > postgres-db > volumes).

[local path]/var/lib/postgresql/data
version: '3'

services:
postgres-db:
image: postgres:latest
container_name: postgres-db
networks:
- dmn-hub
environment:
- TZ=Asia/Kolkata
- POSTGRES_USER=postgres // Set the postgres login username.
- POSTGRES_PASSWORD=p0stgres // Set the postgres login password.
- POSTGRES_DB=dmn_container // Set the postgres database name.
volumes:
- ./db.sql:/docker-entrypoint-initdb.d/init.sql
- D:\repos\postgres:/var/lib/postgresql/data // [local path]/var/lib/postgresql/data
ports:
- "5432:5432"

redis-container:
image: redis:latest
container_name: redis-container
networks:
- dmn-hub
ports:
- "6379:6379"

dmn-hub:
image: dmn_hub_container:latest
container_name: dmn-hub-container
environment:
- TZ=Asia/Kolkata
networks:
- dmn-hub
ports:
- "8081:8081"
restart: always
env_file:
- .env

networks:
dmn-hub:

volumes:
postgres-data:

ENV File:

Either use Postgres or SQLight comand-line. Using both will result in only postgres being processed.

POSTGRES_DB_URL: "jdbc:postgresql://postgres-db:5432/[your db name]"
DB_PASSWORD: p0stgres // The postgres password that was set in the compose file.
DB_USERNAME: postgres // The postgres login name that was set in the compose file.
VariableDescription
JWT_EXPIRY_TIMELogin token expiry time.
RESET_PASSWORD_SENDER_EMAILSender email address for password reset OTPs.
RESET_PASSWORD_SENDER_EMAIL_PASSWORDPassword for the sender email address.
HEADER_LOGO_URLURL for the header logo in the password reset emails.
SQLITE_URLURL for SQLite database.
POSTGRES_DB_URLURL for Postgres database.
DB_PASSWORDPassword for Postgres login.
DB_USERNAMEUsername for Postgres login.
.env Example
JWT_EXPIRY_TIME = "86400000"

RESET_PASSWORD_SENDER_EMAIL="no-reply@autonom8.com"
RESET_PASSWORD_SENDER_EMAIL_PASSWORD="n0reply"

HEADER_LOGO_URL="https://storage.googleapis.com/public-a8-bucket/3e5957ff-154e-4a5d-a13b-c0732c19ea52/apps/736b987b-e610-4d7f-b934-f4328ee16a1c/download_1701412118067.png"

SQLITE_URL="jdbc:sqlite:C:\Users\velra\Downloads\sqlite-tools-win32-x86-3430200\dmn-container.db"

POSTGRES_DB_URL= "jdbc:postgresql://postgres-db:5432/[your db name]"
DB_PASSWORD="passw0rd"
DB_USERNAME="postgres"

Start Docker

Next, you will have to Start the DMN Hub in Docker:

docker compose up
DMN Access URL

After successfully starting DMN Hub, access it via your browser using the following URL:

localhost:8081/web