Migrating MetaBase from JAR to Docker

I have MetaBase installed on a server using JAR, and I need to migrate it to another server but need to install it using Docker instead. Is that possible ? Knowing that I will need to upgrade from 0.50.13 to 0.52.6 in later stage with PostgreSQL as my database in both.

All you need to migrate is the Database or point the new docker image to the same postgres DB you're running the jar with