Which diectory I should mount to host in keycloak docker container in order to make the data in H2 database be persistent?

I am using Keycloak docker image and currently tweaking some designs using H2 embedded database.
I checked Keycloak docs but seems can’t find which directory I should mount in order to make the data in H2 database be persistent.

Anyone has idea ?

Thanks.

Hi.

In my environments I have the host directory mounted to /opt/jboss/keycloak/standalone/data for my embedded H2 database.

Hope that helps.

I will try. Thank you very much.