Skip to Content
AppTemplateDocker & Services

Konfiguration

Docker Compose Varianten

Alle Services starten

docker compose up

Nur Infrastruktur

docker compose up -d postgres engine authority whodb

Nur LowCode

docker compose up -d postgres engine authority whodb lowcode

Nur AppSDK

APPSDK_SAMPLE_PORT=3000 docker compose up -d postgres engine authority whodb appsdk_sample

AppSDK mit benutzerdefiniertem Port

APPSDK_SAMPLE_PORT=3003 docker compose up -d

Umgebungsvariablen

LowCode-Service

VariableBeschreibungStandardwert
NODE_OPTIONSNode.js Optionen (Debugging)--inspect=0.0.0.0:9229 --enable-source-maps
_NODERED_AUTH_DISABLEDAuthentifizierung deaktivierentrue (Entwicklung)
NODERED_CUSTOM_SETTINGS_PATHPfad zu Custom Settings/lowcode/src/custom_settings.js
NODERED_FLOW_STORAGE_OUTPUT_FORMATFlow-Speicherformatyaml

AppSDK-Service

VariableBeschreibungStandardwert
PROCESSCUBE_ENGINE_URLEngine-URLhttp://engine:8000
PROCESSCUBE_AUTHORITY_URLAuthority-URLhttp://authority:11560
PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_IDOAuth2 Client-ID für Workerexternal_task_worker
PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_SECRETOAuth2 Client-Secret für Workerexternal_task_worker_secret
APPSDK_SAMPLE_PORTPort der AppSDK-App3000

Engine-Service

VariableBeschreibungStandardwert
engine__database__dialectDatenbank-Typpostgres
engine__database__hostDatenbank-Hostpostgres
engine__processModelSeedDirBPMN-Seed-Verzeichnis/processes/

Authority-Service

Die Authority-Konfiguration befindet sich in .processcube/authority/config/ mit User-Seeding-Daten und OIDC-Einstellungen.

Custom Settings (LowCode)

Die Datei apps/lowcode/src/custom_settings.js konfiguriert Node-RED:

module.exports = { editorTheme: { page: { title: "LowCode AppTemplate" }, palette: { categories: [ 'MyProject', 'subflows', 'common', 'function', 'network', 'sequence', 'parser', 'storage' ] } }, functionGlobalContext: { os: require('os') } }
EinstellungBeschreibung
editorTheme.page.titleTitel des Node-RED Editors
editorTheme.palette.categoriesReihenfolge der Palette-Kategorien (eigene zuerst)
functionGlobalContextModule, die in Function-Nodes global verfügbar sind

Flow-Speicherformat

Das AppTemplate verwendet YAML als Speicherformat für Flows:

NODERED_FLOW_STORAGE_OUTPUT_FORMAT: yaml

YAML bietet gegenüber JSON bessere Lesbarkeit und eignet sich besser für Versionskontrolle mit Git.

next.config.ts (AppSDK)

import { withApplicationSdk } from '@5minds/processcube_app_sdk/server'; const nextConfig = { serverExternalPackages: ['esbuild'], }; export default withApplicationSdk(nextConfig);
  • withApplicationSdk() — Aktiviert External Task Worker Auto-Discovery
  • serverExternalPackages: ['esbuild'] — Pflicht für native Module

Nächste Schritte

  • Debugging — VSCode Debugging einrichten
  • CI/CD — GitHub Actions Workflow