Environment variables in Camunda Run

Greetings to all. I would like to ask you a query related to Camunda Run configuration (I am using version 7). Currently, I know that it is necessary to add the database, user and password in the default.yml or production.yml files. Is it possible to configure these values using environment variables? If so, how would the process be?

# datasource configuration is required
spring.datasource:
  url: jdbc:sqlserver://localhost:1433;databaseName=/*Your_Database*/
  driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  username: /*Your_Username*/
  password: /*Your_Password*/

You can try these env variables as camunda run startup shell script overrides spring boot db configs with these

DB_DRIVER
DB_URL
DB_USERNAME
DB_PASSWORD

Reference
docker-camunda-bpm-platform/camunda-run.sh at next ยท camunda/docker-camunda-bpm-platform (github.com)

Since camunda run is based on springboot so you can try leveraging springboot relaxed binding to overrride almost all camunda configs via OS env variables.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.