How to change H2 db storage type to "file mode"?

I try to save my data and info when k8s pod is restarted.
How can I change default h2 db behavior from “in-memory” to “file” mode and just store it in persistent volume claim?

It is highly recommend to use Postgres or MariaDB/MySQL, but you can set MB_DB_FILE to define a path to a volume outside the container.
See the Docker documentation for other examples: