Making metabase docker container read config and CSV files from AWS EFS

The configs and analytic dashboards of our metabase are stored in, metabase-data.trace.db. This metabase reads from bunch of CSV files for analytics.
All of the above are currently stored in /home/ec2-user/metabase-data/.

The docker command I am using to run metabase is:
docker run -d -p 10001:3000 -v /home/ec2-user/metabase-data:/metabase-data -v /home/ec2-user/metabase-plugins:/plugins -e "MB_DB_FILE=/metabase-data" --name metabase-main metabase/metabase

But now. I need to use AWS EFS to store those mentioned files (, metabase-data.trace.db and CSVs). How can I amend the above docker command, so that metabase can read from EFS instead of a local folder?

Hi @daniel123
You should migrate away from H2 if you are using Metabase in production:
Migrating from the default H2 database to a production database
Your question is not really about Metabase, but how to mount EFS on EC2:
Step 3: Mount the file system on the EC2 instance and test - Amazon Elastic File System