Camunda Spring Boot Starter & Postgres

Hello,

I’m trying to test the latest version of Camunda CE using the spring-boot-starter setup.
While I can get this to work without issue using H2, I would like to try to verify this against Postgresql. My understanding is that I only need to have the postgres driver and a few parametres in my application.properties file:

camunda.bpm.database.type=postgres
spring.datasource.url=jdbc:postgresql://localhost:5432/camunda
spring.datasource.username=demo
spring.datasource.password=###
spring.datasource.driver-class-name=org.postgresql.Driver

When starting up the app, I can see in the console output that the embedded camunda is still using H2, so I’m unsure if I require some additional steps to get this to work with Postgres or If I am using the wrong settings. Can someone please offer suggestions?

Stephen

Should have taken things a little slower here and verified the pom.

So, I was missing spring-boot-starter-jdbc and I included the following as per the docs:

camunda.bpm.database.type=postgres
spring.datasource.url=jdbc:postgresql://localhost:5432/camunda
spring.datasource.username=???
spring.datasource.password=???
spring.datasource.driver-class-name=org.postgresql.Driver
#camunda.bpm.database.schema-update=create-drop
camunda.bpm.database.table-prefix=camunda.

Seems to be working well.

1 Like