{"id":13785862,"url":"https://github.com/steinskeeper/fastapi-postgres-docker","last_synced_at":"2026-03-11T02:31:14.680Z","repository":{"id":101387002,"uuid":"414060234","full_name":"steinskeeper/fastapi-postgres-docker","owner":"steinskeeper","description":"FastAPI + Postgres + Docker Compose + Heroku Deploy Template","archived":false,"fork":false,"pushed_at":"2022-09-13T13:44:20.000Z","size":12,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-17T22:35:53.321Z","etag":null,"topics":["alembic","docker","fastapi","heroku","migration","postgres","sqlalchemy"],"latest_commit_sha":null,"homepage":"","language":"Python","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/steinskeeper.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}},"created_at":"2021-10-06T03:51:24.000Z","updated_at":"2024-03-26T10:07:45.000Z","dependencies_parsed_at":"2024-01-30T13:00:37.836Z","dependency_job_id":"a84d45a9-9617-415b-a91f-ecf5f465584c","html_url":"https://github.com/steinskeeper/fastapi-postgres-docker","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/steinskeeper%2Ffastapi-postgres-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steinskeeper%2Ffastapi-postgres-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steinskeeper%2Ffastapi-postgres-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steinskeeper%2Ffastapi-postgres-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steinskeeper","download_url":"https://codeload.github.com/steinskeeper/fastapi-postgres-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253638966,"owners_count":21940434,"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":["alembic","docker","fastapi","heroku","migration","postgres","sqlalchemy"],"created_at":"2024-08-03T19:01:05.608Z","updated_at":"2026-03-11T02:31:14.661Z","avatar_url":"https://github.com/steinskeeper.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# FastAPI + Postgres + Docker Compose + Heroku Deploy\n\n\n### Features\n1. FastAPI with Postgres setup\n2. Docker container with docker-compose\n3. JWT User Authentication\n4. Modular Project Structure\n5. Heroku Deploy with Githu Actions\n6. Manage Migrations with Alembic script\n\n# TO-DO when Running on Local Machine\n1. Change `entrypoint.sh` file from\n    ```\n   #!/bin/bash\n    alembic upgrade head\n    uvicorn app.server:app --reload --host 0.0.0.0 --port $PORT\n    ```\n    To\n    \n    ```\n    #!/bin/bash\n    alembic upgrade head\n    uvicorn app.server:app --reload --host 0.0.0.0 --port 5000\n    ```\n\n# If there is any changes to Database Schema\n1. `$ sh mig.sh`\n   Example \n   ```\n   sh mig.sh\n   Enter the Migration File name : \n   cluster groups org\n   ```\n   The resulting file name will be\n   `21ce965c935e_cluster_groups_org.py`\n\n2. Commit the migration files.\n\n# When Pushing to Main\n1. Change back --port 5000 to --port $PORT in `entrypoint.sh`\n \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteinskeeper%2Ffastapi-postgres-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteinskeeper%2Ffastapi-postgres-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteinskeeper%2Ffastapi-postgres-docker/lists"}