{"id":20399690,"url":"https://github.com/ohld/dokku-prefect","last_synced_at":"2025-04-12T13:38:23.035Z","repository":{"id":166847968,"uuid":"641550020","full_name":"ohld/dokku-prefect","owner":"ohld","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-18T12:30:56.000Z","size":14,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T08:12:56.205Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","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":"2023-05-16T17:51:26.000Z","updated_at":"2024-08-24T16:27:28.000Z","dependencies_parsed_at":"2023-08-30T04:48:36.423Z","dependency_job_id":null,"html_url":"https://github.com/ohld/dokku-prefect","commit_stats":null,"previous_names":["ohld/dokku-prefect"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohld%2Fdokku-prefect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohld%2Fdokku-prefect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohld%2Fdokku-prefect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohld%2Fdokku-prefect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohld","download_url":"https://codeload.github.com/ohld/dokku-prefect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248574241,"owners_count":21126980,"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-11-15T04:31:25.835Z","updated_at":"2025-04-12T13:38:23.029Z","avatar_url":"https://github.com/ohld.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dokku-prefect\n\n## How to deploy\n\n### TL;DR:\n\n1. Create Dokku app, link Postgres\n2. Clone this Template\n3. Set CI/CD envs in Github repo settings\n4. Push something to trigger deploy\n5. Enable Https if required\n\n### Create Dokku app\n\nOn your server (where Dokku is installed):\n``` sh\ndokku apps:create prefect\ndokku config:set prefect POSTGRES_DATABASE_SCHEME=postgresql+asyncpg \\\n    PREFECT_API_URL=https://prefect.yourdomain.com/api\n\ndokku postgres:create prefect\ndokku postgres:link prefect prefect -a PREFECT_API_DATABASE_CONNECTION\n```\n\nRead more about [Prefect database connection](https://docs.prefect.io/latest/host/#configuring-a-postgresql-database) for self-hosted production deployment.\n\n### CI/CD envs\n\nIn order to enable Dokku auto deployment after a commit / PR to _main_ branch, you need to set Repo secrets in Github repo's settings:\n\n1. Open\nSettings -\u003e Secrets and variables -\u003e Actions -\u003e New repository secret\n\n2. Set variables\n- SSH_PRIVATE_KEY (`cat .ssh/id_rsa` \u0026 copy-paste your key)\n- DOKKU_HOST  (e.g. myserver.dokku.com)\n- DOKKU_APP_NAME (e.g. prefect)\n\n\n### How to enable Https\n\n``` sh\ndokku letsencrypt:enable prefect\n```\n\n### How to enable https basic auth\n\n``` sh\ndokku plugin:install https://github.com/dokku/dokku-http-auth.git\ndokku http-auth:enable prefect admin admin_password\ndokku http-auth:add-allowed-ip app $(curl http://icanhazip.com/)\ndokku ps:restart prefect\n```\n\nDon't forget to disable Cloudflare Proxy to allow `add-allowed-ip` do its job.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohld%2Fdokku-prefect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohld%2Fdokku-prefect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohld%2Fdokku-prefect/lists"}