How to run Metabase on Dokku

An open source analytics dashboard on an open source platform-as-a-service

Metabase is

the easy, open source way for everyone in your company to ask questions and learn from data.

Dokku is:

The smallest PaaS implementation you’ve ever seen
Docker powered mini-Heroku in around 200 lines of Bash

Metabase provide some one-click setups for Heroku, AWS, and Docker. But not Dokku!

Setting it up on Dokku is super easy though, if you’ve already got Dokku set up.

mkdir metabase
cd metabase
curl > ./metabase.jar #download the .jar version of metabase
# Check for latest verison
echo "web: java -jar metabase.jar" > Procfile 
# makes a Procfile so Dokku knows how to run the jar
git init #you use Git to deploy to Dokku
git add metabase.jar
git add Procfile
git commit -m "Making metabase run on Dokku"
ssh apps:create metabase #make a new dokku app
ssh config:set metabase MB_JETTY_PORT=5000
# Metabase by default serves on port 3000; Dokku expects 5000 so we set that environment variable to make both happy
git remote add dokku
git push dokku master #deploy metabase

And that should do it! Check

ssh logs metabase

To see if it deploys okay. It’ll take a minute or so to initialise.

Then browse to: and off you go :)

If you have problems with Java, just


and then run

java -version

to see what JVM you have. If it doesn’t look groovy…

apt-get install openjdk-8-jre
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.