How to configure persistence in Flowable All in One image

Hi! I found that the quickest and straigthfoward way to use Flowable Modeler is run it’s docker image. However, as h2 is configured in memory by default, it’s tricky to upload all my several DMN tables to work with my process every time the application starts. How can I configure persistence in docker Flowable All in One image?

@abarazal

You just need to mount a volume and then configure the Spring Datasource URL, for example:

# docker pull flowable/all-in-one:6.5.0
docker run -d --name flowable \
  -p 8080:8080 \
  -v ~/serendipity-db:/serendipity-db \
  -e "spring.datasource.url=jdbc:h2:/serendipity-db/db;AUTO_SERVER=TRUE;AUTO_SERVER_PORT=9091;DB_CLOSE_DELAY=-1" \
  flowable/all-in-one:6.5.0

Hi.

Take a look here; https://github.com/flowable/flowable-engine/blob/master/docker/config/all-in-one-postgres.yml

This config makes use of a postgresql db with persisted storage.
You can start it using this script; https://github.com/flowable/flowable-engine/blob/master/docker/all-in-one-postgres.sh

Regards,

Yvo