Need help on deplying Metabase into docker

Hello All,
We have been using the Metabase since last year. I am using custom jar to start up the metabase and using Maria db as application database , hence questions and dashboards created by the users are stored in Maria DB.
Now i am planning to use Docker for deployment without loosing any data stored in Maria DB .
Can anyone please suggest me how can i achieve this ?
Currently i am in Metabase 0.32.8
OS Centos 8
Application Database : Maria db 10.3.11

Hi @sushant.naik

It’s very simple for you to change, since you’ve already done the “heavy” part, which is the migration away from H2.

I would recommend that you read thru the documentation first:

And then you would stop your current JAR-service, take a backup of the database and then run the container with a command similar to this - remember to modify to your setup.

docker run -d -p 3000:3000 \
  -e "MB_DB_TYPE=mysql" \
  -e "MB_DB_HOST=<database_address>" \
  -e "MB_DB_PORT=3306" \
  -e "MB_DB_USER=<username>" \
  -e "MB_DB_PASS=<password>" \
  -e "MB_DB_DBNAME=<database_name>" \
  --name metabase metabase/metabase

Hello @flamber,

Okay... Thank you so much:grinning: