Search…
SDK and Frameworks
Docker Showcase App
This page describes how to set up our docker containers as the demo so you can try it. Setup takes just minutes and gets you up and running out of the box.
Easy to start with

How to start the DecisionRules showcase app

First of all, you need to download the docker-compose file.
You can download docker-compose file with curl as shown below.
1
curl -L https://decisionrules.io/showcase/docker-compose.yml --output docker-compose.yaml
Copied!

Generate DecisionRules License Key

Please use DecisionRules License Key Generator. The generator will send your trial license key to your email.

Method 1: Validating license key on validation page

After you obtain the license key you can open the terminal and navigate yourself to the folder where you downloaded the docker-compose file as shown in the step above.
Then run:
1
docker compose up
Copied!
Docker will find a docker-compose file by itself and pull all mandatory containers and create all volumes defined in config. By default, you don't need to change anything.
After that, you will see something like this in terminal
Indication that license validation server is running
Now if you go to localhost:80 you will be redirected to the validation page where you can enter your license key and after that, you can register a new account to local mongoDB database.
If you turn your containers off and want to start them again you need to use docker-compose up --no-recreate command.
Validation Site
After registration, you are ready to use DecisionRules for 30 days as you like.
Right after the successful validation the showcase is turned off and the DecisionRules server is started.
After that license key is stored in docker volume so there is no need to enter the license key again at the next start of the container (in case of containers recreation you will be prompted again with the validation process).

Method 2: Adding license key to compose file

If you don't want or can't use our validation page you can enter the license key directly into the configuration file.
The license key belongs to theLICENSE_KEYvariable in your docker-compose file and save. It should look like this.
1
version: "3.7"
2
3
services:
4
server:
5
image: decisionrules/server
6
environment:
7
- "SHOWCASE=true"
8
- "WORKERS_NUMBER=1"
9
- "REDIS_URL=redis://host.docker.internal:6379"
10
- "SOLVER_REDIS_URL=redis://host.docker.internal:6379"
11
- "MONGO_DB_URI=mongodb://host.docker.internal:27017"
12
- "CLIENT_URL=http://localhost:80/#"
13
- "LICENSE_KEY=YOUR_LICENSE_KEY_HERE"
14
ports:
15
- "8080:8080"
16
- "8081:8081"
17
links:
18
- mongoDb
19
- redis
20
volumes:
21
- license:/assets/lic/:rw
22
23
client:
24
image: decisionrules/client
25
environment:
26
- "API_URL=http://localhost:8080"
27
ports:
28
- "80:80"
29
30
mongoDb:
31
image: mongo
32
ports:
33
- "27017:27017"
34
35
redis:
36
image: redis
37
ports:
38
- "6379:6379"
39
volumes:
40
license:
41
driver: local
Copied!
After that, run command below in the folder containing the docker-compose file that you edited.
1
docker compose up
Copied!
After decisionrules/server comes alive and connects to local Redis and mongoDB, you should see something very similar to this:
After this, you can enter localhost:80 and you will be redirected to the login page of the DecisionRules login screen.
After registration, you are ready to use DecisionRules for 30 days as you like.