Skip to content

chris-dare/fastapi-docker-heroku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deploy fastAPI to Heroku using Docker

FastAPI Modern, fast, web framework for Python
Docker Containerization software
Heroku Hosting platform

Requirements

Git (or just download the repo)
Heroku cli (to run the heroku commands)

Instructions

Note: Replace your-app-name in the instructions with the name you wish to have on your app.

  1. Install git (or just downlad the repo)

  2. Install Heroku cli and log in

  3. Clone or download this repo.

git clone https://github.com/askblaker/fastapi-docker-heroku.git
  1. cd into the directory
cd fastapi-docker-heroku
  1. Create the heroku app
heroku create your-app-name
  1. Set the heroku cli git remote to that app
heroku git:remote your-app-name
  1. Set the heroku stack setting to container
heroku stack:set container
  1. Push to heroku
git push heroku main
  1. Enjoy your fastAPI app at https://your-app-name.herokuapp.com

About

Sample fastapi file with docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 64.1%
  • Dockerfile 35.9%