An open API service indexing awesome lists of open source software.

https://github.com/sumukh/dokku-metabase

Run metabase on Dokku (A self hosted Heroku clone)
https://github.com/sumukh/dokku-metabase

Last synced: over 1 year ago
JSON representation

Run metabase on Dokku (A self hosted Heroku clone)

Awesome Lists containing this project

README

          

# Metabase Setup

Prerequisites:
- Install Dokku on your server
- It's helpful to setup an alias to make running commands on dokku from your own computer

`$ alias dokku='ssh -t dokku@your-ip'`

## Download Metabase jar

Get the most recent JAR file from: http://www.metabase.com/start/jar.html

$ git add metabase.jar
$ git commit -am 'Add v... of metabase'

## Create application on dokku
```
dokku apps:create metabase

# Link Databases

# install postgres if it's not available yet
dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres

# Metabase DB
dokku postgres:create metabase
dokku postgres:link metabase metabase

# Take the DATABASE URL from above and run
dokku config:set metabase MB_DB_CONNECTION_URI= MB_JETTY_PORT=5000 MB_DB_TYPE=postgres BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-jvm-common.git

# Link any interesting database from other dokku containers
dokku mysql:link your-other-dokku-app metabase
# Note the urls and add them to the metabase dashboard.
```

# Deploy
```
$ git remote add dokku dokku@your-dokku-host.com:metabase
$ git commit -am 'deploy'
$ git push dokku master
```

# Updating Metabase

- Download the new jar from Metabase and replace the old jar.

```
$ git add metabase.jar
$ git commit -m 'Upgrade to v...'
$ git push dokku master
```

You may have to wait a few moments for migrations to run. To check on the progress run the following commnad

$ dokku logs metabase

# Source
https://medium.com/@sndyrgrs/how-to-run-metabase-on-dokku-dffdfe1ef442#.hby06m5lm