![]() If you have previously run and configured your Metabase using the local Database and then stopped the container, your data will still be there unless you deleted the container with the docker rm command. Getting your config back if you stopped your container Now when you launch your container we are telling Metabase to use the database file at ~/metabase-data/metabase.db instead of its default location and we are mounting that folder from our local filesystem into the container. docker run -d -p 3000:3000 -v ~/metabase-data:/metabase-data -e "MB_DB_FILE=/metabase-data/metabase.db" -name metabase metabase/metabase To persist your data outside of the container and make it available for use between container launches we can mount a local file path inside our container. The end result is that your Metabase application data will be on disk inside your container and lost if you ever remove the container. In its default configuration Metabase uses the local filesystem to run an H2 embedded database to store its own application data. For example running Metabase on port 12345: docker run -d -p 12345:3000 -name metabase metabase/metabase Since Docker containers have their own ports and we just map them to the system ports as needed it's easy to move Metabase onto a different system port if you wish. Once the Metabase startup completes you can access the app at localhost:3000 You can use docker logs -f metabase to follow the rest of the initialization progress. This will launch a Metabase server on port 3000 by default. Here's a quick one-liner to get you off the ground (please note, we recommend further configuration for production deployments below): docker run -d -p 3000:3000 -name metabase metabase/metabase If you're trying to upgrade your Metabase version on Docker, check out these upgrading instructions. Metabase provides an official Docker image via Dockerhub that can be used for deployments on any system that is running Docker. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |