Self-host Metabase with Levelrail
Ask questions of your data and share dashboards, no SQL required.
- Authormetabase
- LicenceAGPL-3.0
- Memory1 GiB
- Services1
How to self-host Metabase
-
Pull the images
One image is pulled on your server.
Show images
metabase/metabase:v0.50.8
-
Create the app
One service starts in a single Compose app, with 1 named volume mount for your data, on port 3000.
-
Fill in the secrets
1 setting is preset, you do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
Metabase requirements
- Memory
- About 1 GiB
- Architectures
- amd64 image published, arm64 not available
- Ports
- 3000
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- AGPL-3.0, network copyleft (agpl) license
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
- Host ports. It publishes port 3000 on the host, so open them in the VPS firewall only if you want that.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Metabase. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the Metabase docs page.
Deploy Metabase your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy Metabase from the CLI
levelrail-cli templates deploy metabase --name my-metabase Deploy Metabase with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/metabase/deploy Metabase configuration
Metabase services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| metabase | metabase/metabase:v0.50.8 | 3000 | metabase_data -> /metabase-data |
Metabase environment variables
| Variable | Service | Value |
|---|---|---|
| MB_DB_FILE | metabase | Preset by the template |
Ports and volumes
- Ports
- 3000
- Volumes
- 1 named mount: metabase_data -> /metabase-data
Metabase FAQ
How much memory does Metabase need?
The catalog lists about 1 GiB of memory for Metabase.
Does Metabase run on arm64?
For Metabase, amd64 only, no arm64 image; amd64 is image published.
What licence is Metabase under?
Metabase is licensed under AGPL-3.0, which is network copyleft, so source sharing also applies when it is offered as a hosted service.
Does Metabase need configuration before it starts?
No. The template fills in its own defaults.
Which ports does Metabase use?
Metabase listens on port 3000 inside the stack.
Where does Metabase keep its data?
In a named volume: metabase_data mounted at /metabase-data.
Can I deploy Metabase on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id metabase for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image metabase/metabase:v0.50.8 is what you deploy there.