Persisting process and runtime data

I am using zeebe self-hosted with hazelcast exporter along with community plugins like tasklist and operate using docker compose.

After i docker restart the process defs as well as the runtime data is no longer available. I need to redeploy the definitions. Also no running instances are retained.
How do I persist the data across docker restarts?

I have mapped the zeebe data directory to a local dir. But that does not help.

Please help.