https://github.com/dennypradipta/deploy-redash-using-dokku
A step-by-step tutorial to deploy self-hosted Redash using Dokku
https://github.com/dennypradipta/deploy-redash-using-dokku
docker dockerfile dokku procfile redash redashio
Last synced: 6 months ago
JSON representation
A step-by-step tutorial to deploy self-hosted Redash using Dokku
- Host: GitHub
- URL: https://github.com/dennypradipta/deploy-redash-using-dokku
- Owner: dennypradipta
- Created: 2021-12-01T02:44:20.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-01T02:44:59.000Z (almost 4 years ago)
- Last Synced: 2025-02-01T05:14:47.707Z (8 months ago)
- Topics: docker, dockerfile, dokku, procfile, redash, redashio
- Language: Dockerfile
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploy Self-Hosted Redash using Dokku
## Before you're doing this...
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](https://redash.io/help/open-source/setup). If you are not using one of those, you may continue.
## Requirements
1. A fresh installation of Ubuntu 18.04/20.04 x64, Debian 9+ x64 or CentOS 7 x64 (experimental) with the FQDN set
2. 4GB of RAM (More RAM means more Workers)
3. Dokku
4. Postgres
5. Redis
6. Redash
7. Patience## How-to steps
1. Install Dokku by following the [Dokku's Getting Started Guide](https://dokku.com/docs/getting-started/installation/)
2. After Dokku has been installed, create an app called `redash` by running `dokku apps:create redash`
3. 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
```
4. Create a Postgres instance by running `dokku postgres:create postgres`
5. Create a Redis instance by running `dokku redis:create redis`
6. 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
```
7. Run `dokku config:show redash` and copy the `DATABASE_URL` and `REDIS_URL` to somewhere else
8. Add new environment variables to the `redash` app by running this command:
```
dokku config:set redash REDASH_DATABASE_URL=
dokku config:set redash REDASH_REDIS_URL=
dokku config:set redash DOKKU_PROXY_PORT_MAP=http:80:5000
```
9. Set other [Redash required environment variables](https://redash.io/help/open-source/admin-guide/env-vars-settings) by running this command:
```
dokku config:set redash =
```
10. Clone this repository to your local computer
11. After you clone this repository, add a new git remote called `dokku` to your Dokku instance by running:
```
git remote add dokku dokku@:redash
```
12. Push to `dokku` remote by running `git push dokku master`
(Heads up: Dokku only listens for deployment via `master`, so if you're deploying from main, you need to change your command to `git push dokku main:master`)
13. 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
```
14. Open your Dokku instance by your IP/Domain and proceed with installing Redash.
15. Congratulations!## Migrating Data from redash.io to Self Hosted Redash
See the instructions for their [migration tool](https://github.com/getredash/redash-toolbelt/tree/master/redash_toolbelt/docs/redash-migrate). If you have questions please post on their [user forum](https://discuss.redash.io/).