If you are using AWS EC2, DigitalOcean, or Google Compute Engine, it's better to use the prebuilt image which you can see the guide in the Redash Self-Hosted Guide. If you are not using one of those, you may continue.
- A fresh installation of Ubuntu 18.04/20.04 x64, Debian 9+ x64 or CentOS 7 x64 (experimental) with the FQDN set
- 4GB of RAM (More RAM means more Workers)
- Dokku
- Postgres
- Redis
- Redash
- Patience
- Install Dokku by following the Dokku's Getting Started Guide
- After Dokku has been installed, create an app called
redash
by runningdokku apps:create redash
- Install Dokku Postgres and Dokku Redis by running this commands below:
sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres sudo dokku plugin:install https://github.com/dokku/dokku-redis.git redis
- Create a Postgres instance by running
dokku postgres:create postgres
- Create a Redis instance by running
dokku redis:create redis
- Link the created Postgres and Redis instance by runnning this commands below:
# This will link postgres instance to redash app dokku postgres:link postgres redash # This will link redis instance to redash app dokku redis:link redis redash
- Run
dokku config:show redash
and copy theDATABASE_URL
andREDIS_URL
to somewhere else - Add new environment variables to the
redash
app by running this command:dokku config:set redash REDASH_DATABASE_URL=<your previously copied DATABASE_URL> dokku config:set redash REDASH_REDIS_URL=<your previously copied REDIS_URL> dokku config:set redash DOKKU_PROXY_PORT_MAP=http:80:5000
- Set other Redash required environment variables by running this command:
dokku config:set redash <VARIABLE_NAME>=<YOUR_VALUE>
- Clone this repository to your local computer
- After you clone this repository, add a new git remote called
dokku
to your Dokku instance by running:git remote add dokku dokku@<your_dokku_ip/your_dokku_domain>:redash
- Push to
dokku
remote by runninggit push dokku master
(Heads up: Dokku only listens for deployment viamaster
, so if you're deploying from main, you need to change your command togit push dokku main:master
) - After pushing to Dokku, go to your Dokku instance terminal and run this commands below:
dokku ps:scale redash web=1 scheduler=1 worker=4
- Open your Dokku instance by your IP/Domain and proceed with installing Redash.
- Congratulations!
See the instructions for their migration tool. If you have questions please post on their user forum.