{"id":22397356,"url":"https://github.com/dennypradipta/deploy-redash-using-dokku","last_synced_at":"2025-03-26T23:21:31.981Z","repository":{"id":105082014,"uuid":"433659759","full_name":"dennypradipta/deploy-redash-using-dokku","owner":"dennypradipta","description":"A step-by-step tutorial to deploy self-hosted Redash using Dokku","archived":false,"fork":false,"pushed_at":"2021-12-01T02:44:59.000Z","size":1,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T05:14:47.707Z","etag":null,"topics":["docker","dockerfile","dokku","procfile","redash","redashio"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dennypradipta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-01T02:44:20.000Z","updated_at":"2022-03-03T02:57:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"bcfb6c58-8de1-4df5-8ae3-6c7f0bda9f5e","html_url":"https://github.com/dennypradipta/deploy-redash-using-dokku","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennypradipta%2Fdeploy-redash-using-dokku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennypradipta%2Fdeploy-redash-using-dokku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennypradipta%2Fdeploy-redash-using-dokku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennypradipta%2Fdeploy-redash-using-dokku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dennypradipta","download_url":"https://codeload.github.com/dennypradipta/deploy-redash-using-dokku/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245750383,"owners_count":20666168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","dockerfile","dokku","procfile","redash","redashio"],"created_at":"2024-12-05T06:12:43.052Z","updated_at":"2025-03-26T23:21:31.952Z","avatar_url":"https://github.com/dennypradipta.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy Self-Hosted Redash using Dokku\n\n## Before you're doing this...\n\nIf 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.\n\n## Requirements\n\n1. A fresh installation of Ubuntu 18.04/20.04 x64, Debian 9+ x64 or CentOS 7 x64 (experimental) with the FQDN set\n2. 4GB of RAM (More RAM means more Workers)\n3. Dokku\n4. Postgres\n5. Redis\n6. Redash\n7. Patience\n\n## How-to steps\n\n1. Install Dokku by following the [Dokku's Getting Started Guide](https://dokku.com/docs/getting-started/installation/)\n2. After Dokku has been installed, create an app called `redash` by running `dokku apps:create redash`\n3. Install Dokku Postgres and Dokku Redis by running this commands below:\n   ```\n   sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres\n   sudo dokku plugin:install https://github.com/dokku/dokku-redis.git redis\n   ```\n4. Create a Postgres instance by running `dokku postgres:create postgres`\n5. Create a Redis instance by running `dokku redis:create redis`\n6. Link the created Postgres and Redis instance by runnning this commands below:\n   ```\n   # This will link postgres instance to redash app\n   dokku postgres:link postgres redash\n   # This will link redis instance to redash app\n   dokku redis:link redis redash\n   ```\n7. Run `dokku config:show redash` and copy the `DATABASE_URL` and `REDIS_URL` to somewhere else\n8. Add new environment variables to the `redash` app by running this command:\n   ```\n   dokku config:set redash REDASH_DATABASE_URL=\u003cyour previously copied DATABASE_URL\u003e\n   dokku config:set redash REDASH_REDIS_URL=\u003cyour previously copied REDIS_URL\u003e\n   dokku config:set redash DOKKU_PROXY_PORT_MAP=http:80:5000\n   ```\n9. Set other [Redash required environment variables](https://redash.io/help/open-source/admin-guide/env-vars-settings) by running this command:\n   ```\n   dokku config:set redash \u003cVARIABLE_NAME\u003e=\u003cYOUR_VALUE\u003e\n   ```\n10. Clone this repository to your local computer\n11. After you clone this repository, add a new git remote called `dokku` to your Dokku instance by running:\n    ```\n    git remote add dokku dokku@\u003cyour_dokku_ip/your_dokku_domain\u003e:redash\n    ```\n12. Push to `dokku` remote by running `git push dokku master`\n    (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`)\n13. After pushing to Dokku, go to your Dokku instance terminal and run this commands below:\n    ```\n    dokku ps:scale redash web=1 scheduler=1 worker=4\n    ```\n14. Open your Dokku instance by your IP/Domain and proceed with installing Redash.\n15. Congratulations!\n\n## Migrating Data from redash.io to Self Hosted Redash\n\nSee 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/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennypradipta%2Fdeploy-redash-using-dokku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdennypradipta%2Fdeploy-redash-using-dokku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennypradipta%2Fdeploy-redash-using-dokku/lists"}