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)
- Host: GitHub
- URL: https://github.com/sumukh/dokku-metabase
- Owner: Sumukh
- License: mit
- Created: 2017-04-22T22:06:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-07T17:37:55.000Z (almost 9 years ago)
- Last Synced: 2025-02-01T17:24:46.835Z (over 1 year ago)
- Size: 2.93 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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