Edit docker-compose.yml file for Docker-based Testing

First, get the credentials you need, see the previous example page for how to do that.

Next, Unzip the sample files and find the docker-compose.yml file, which contains the app configuration.

Windows example

Open the file with an editor.

Edit this section with your codes. The dummy email and passwords don't matter for testing

      Users__0__Email: "[email protected]"
      Users__0__Password: "123456!"
      Users__0__ActivationCode: ""
      Users__1__Email: "[email protected]"
      Users__1__Password: "123456!"
      Users__1__ActivationCode: ""

Add users and their corresponding activation codes in the user's section of the file. You must get these codes from your Zentitle page per the instructions above.

      Zentitle__ClientId: "{Your api client ID}" (This is used to ID you as the tester, use any short text string)
      Zentitle__ClientSecret: "{Your API Client Secret}"
      Zentitle__AuthServiceUrl: "{Zentitle Auth Url}"
      Zentitle__TenantId: "{Your Tenant ID}" (this is in your API page)
      Zentitle__ZentitleUrl: "{Zentitle API URL}" (https://XXXXXXXX.license.zentitle.io, this is in your API page)
      Zentitle__Entitlement__ProductId: "{Your Product ID}"
      
        //for example:
   
    Zentitle__ClientId: "saas",
    Zentitle__ClientSecret: "AuPefCkk3HGBMcZqxmEmo35QWN9XrauP",
    Zentitle__AuthServiceUrl: "https://yourdetails.keycloak.zentitle.io/realms/yourdetails",
    Zentitle__TenantId: "t_MTwhRp1yl0_9gsZjE5Yhsw",
    Zentitle__ZentitleUrl: "https://yourdetails.api.zentitle.io",
    Zentitle__Entitlement__ProductId:: "prod_JBGnjIXZaA_PYPnJ0oe51A"

Now, set the following parameters in the Zentitle section. The data comes from your setup of the product and the API in previous steps.

Copy the configuration file data (data collected from your Zentitle UI account) to replace the existing values in the library.

Edit the config file and save it with your new values.

This is the example code provided (unedited):


version: '3.9'

services:
  web:
    image: orion-saas-demo
    build:
      context: .
      dockerfile: Dockerfile
    container_name: orion-saas-demo
    environment:
      Zentitle__ClientId: ""
      Zentitle__ClientSecret: ""
      Zentitle__AuthServiceUrl: ""
      Zentitle__TenantId: ""
      Zentitle__ZentitleUrl: ""
      Zentitle__Entitlement__ProductId: ""
      Users__0__Email: "[email protected]"
      Users__0__Password: "password"
      Users__0__ActivationCode: "activation-code"
      Users__1__Email: "[email protected]"
      Users__1__Password: "password"
      Users__1__ActivationCode: "activation-code"
      ASPNETCORE_hostBuilder__reloadConfigOnChange: "false"
    ports:
      - "5701:80"

Once you have edited the file, you are ready to run the app and do some simple testing showing the app's control via the Zentitle platform.

Last updated

Was this helpful?