-
-
Save ohld/aa9bb626e1abea5310fa9ff1094ec16e to your computer and use it in GitHub Desktop.
Deploy & Run Metabase in production using Dokku (with Postgres & https)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create Dokku app | |
dokku apps:create metabase | |
# Pull Metabase instance from Docker | |
docker pull metabase/metabase | |
# Create and link production Postgres | |
dokku postgres:create metabase | |
dokku postgres:link metabase metabase | |
# ⚠️ Copy-paste DATABASE_URL from output above and paste below: | |
dokku config:set metabase MB_DB_TYPE=postgres MB_DB_CONNECTION_URI=postgres://postgres:..... | |
# Because Metabase uses 3000 port | |
dokku proxy:ports-set metabase http:80:3000 | |
# Let's letsencrypt it straight away | |
# You may be asked to specify your email for Letsencrypt | |
dokku letsencrypt metabase | |
# Retag Dokker to allow Dokku to understand everything | |
docker tag metabase/metabase:latest dokku/metabase:latest | |
# Deploy Metabase Instance | |
dokku tags:deploy metabase latest | |
# DONE open in browser: https://metabase.<yourdomain.com> to finish the setup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment