Db autoreconnect?

I’m using JPA (Hibernate in Wildfly 16) in a bunch of Java EE webapps, also in Docker containers.
Sometimes the network path between WF and the DB (Postgres 11) is broken because of many reasons (DB update, etc.) and Hibernate does not like at all this interruption. It does not auto-reconnect to the DB when it resume operation.
Is there some JPA (or even Hibernate-specific) settings I could use to enable auto-reconnect ?

Many thanks!