{"id":13408901,"url":"https://github.com/ohld/airflow-dokku","last_synced_at":"2026-03-16T17:04:41.915Z","repository":{"id":106896529,"uuid":"331908696","full_name":"ohld/airflow-dokku","owner":"ohld","description":"My attempt to run Airflow with Dokku PaaS. Production ready.","archived":false,"fork":false,"pushed_at":"2021-03-27T07:53:00.000Z","size":21,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-07-31T20:32:14.987Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ohld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01-22T10:12:56.000Z","updated_at":"2023-08-07T15:21:36.000Z","dependencies_parsed_at":"2024-04-22T05:11:40.253Z","dependency_job_id":null,"html_url":"https://github.com/ohld/airflow-dokku","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohld%2Fairflow-dokku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohld%2Fairflow-dokku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohld%2Fairflow-dokku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohld%2Fairflow-dokku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohld","download_url":"https://codeload.github.com/ohld/airflow-dokku/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241946944,"owners_count":20047087,"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":[],"created_at":"2024-07-30T20:00:56.308Z","updated_at":"2026-03-16T17:04:41.840Z","avatar_url":"https://github.com/ohld.png","language":null,"funding_links":[],"categories":["Automation"],"sub_categories":[],"readme":"# airflow-dokku\nMy attempt to run Airflow with Dokku PaaS. In production-ready mode (with Postgres, Redis). This code should also work with Heroku (so this can be called `airflow-heroku`) but I have not tested it.\n\n## Production\n\nI really love to book a small droplet on Digital Ocean, install there a Dokku instance and then to try to run everything as Dokku apps.\n\n### Create Dokku app for Airflow\n\n``` bash\ndokku apps:create airflow\n```\n\n### Plugins for production-ready Airflow\n\nYou need to install \u0026 attach Postgres and Redis (this is my random choice, you can try to replace these to Mysql \u0026 RabbitMQ).\n\n``` bash\ndokku postgres:create airflow\ndokku postgres:link airflow airflow --alias \"AIRFLOW__CORE__SQL_ALCHEMY_CONN\"\n```\n\nI don't need to scale Airflow's Celery now so I'll skip the Redis installation and attachment (but it is almost the same as for Postgres).\n\n\n### Setup the env variables\n\n``` bash\ndokku config:set airflow \\\nAIRFLOW__CORE__EXECUTOR=LocalExecutor \\\nAIRFLOW__CORE__FERNET_KEY='\u003cany large random secret string\u003e' \\\nAIRFLOW__CORE__LOAD_EXAMPLES=False \\\nAIRFLOW__CORE__SQL_ALCHEMY_CONN=\u003ccopy of DATABASE_URL value from Postgres\u003e\n```\n\n\n### Create Airflow superuser\n\nOpen Dokku app's shell:\n\n``` bash \ndokku enter airflow web\n```\n\nAnd then call the proper airflow CLI command:\n``` bash\nairflow users create \\\n    --username admin \\\n    --firstname Peter \\\n    --lastname Parker \\\n    --role Admin \\\n    --email spiderman@superhero.org\n```\n\n\n## Activate Dokku auto deploys with Github Actions CI\n\nOpen the file at `.github/workflows/dokku.yml` and add there the URL to the machine where your Dokku runs. Then open Github repo's Settings tab -\u003e Secrets and add `SHH_PRIVATE_KEY` variable. GitHub Action CI will use this key to connect to your machine via ssh.\n\n## HTTPs with Letsencrypt\nIf you attach a domain to a Dokku app you can add a HTTPs security to your service. This can be done with [Dokku Letsencrypt](https://github.com/dokku/dokku-letsencrypt) plugin.\n\n```bash\ndokku letsencrypt:enable airflow\n```\n\n---- \n\n[Contact me](https://twitter.com/danokhlopkov) if you have any questions. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohld%2Fairflow-dokku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohld%2Fairflow-dokku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohld%2Fairflow-dokku/lists"}