Installation OMN Workflow

To be able to use OMN Workflow Engine (mandatory) the corresponding Docker image with Camunda and the workflow components must be installed.

  1. Create file

    /etc/docker-compose/wfl/docker-compose.yml
    version: '3'
    srvices:
        camunda:
            image: hub.apollon.de/omn/camunda:5.6.0
            ports:
                - 8080:8080
                - 8000:8000
            restart: always
            environment:
                DB_DRIVER: org.postgresql.Driver
                DB_URL: jdbc:postgresql://camunda-db:5432/camunda
                DB_USERNAME: camunda
                DB_PASSWORD: camunda
                WAIT_FOR: camunda-db:5432
        camunda-db:
            image: postgres:alpine
            ports:
                - 5432:5432
            environment:
                POSTGRES_USER: camunda
                POSTGRES_PASSWORD: camunda
                POSTGRES_DB: camunda
        wflcomponent:
            image: "hub.apollon.de/omn/workflow-component:5.5.0"
            ports:
                - 8083:8083
            volumes:
                - ./configfiles:/usr/share/wfl-cmoponent/config
  2. Create file

    /etc/docker-compose/configfiles/application.yml
    • Note: secret tokens must be replaced (eg. [SECRET_1])

    logging:
        level:
            root: INFO
        server:
          port: 8083
    spring:
        mvc:
        servlet:
            path: /wf/api/v1
        main:
            banner-mode: off
    app:
        security:
            jwt:
                kid: frontend
                secret: *_[SECRET_1]_*
    wf.engine:
        host: localhost
        port: 8080
        base-path: /engine-rest
    omn:
        config:
            security:
                jwt:
                    key: *_[SECRET_2]_*
                    systemTokenValiditySeconds: 30
        host: http://192.168.42.42:8070
        api-base: /api/v1
        config-api-base: /api/config/v1
  3. Add the following properties

    Properties File Properties

    jwt_filter.properties

    api.secrets=\{ workflow: '[SECRET_2]' , frontend: '[SECRET_1]' }

    jwt.expire.max=604800

    The configuration files use the placeholders[SECRET_1] and[SECRET_2] to clarify which strings have to match, but can be replaced with any string.

    Those secrets should be at least 256 bit(32 characters), better even 512 bit (64 characters) long Strings. A Simple way of generating such keys is hashing a random text using sha256 in a generic online tool.

  4. Start the docker-compose:

    docker-compose up -d

Welcome to the AI Chat!

Write a prompt to get started...