Heroku docker FastAPI

less than 1 minute read

  1. Make sure you have the Heroku CLI and GIT

  2. See this repo or the spoiler below:

git clone git@github.com:askblaker/fastapi-docker-heroku.git
cd fastapi-docker-heroku
heroku create <your-app-name>
heroku git:remote <your-app-name>
heroku stack:set container
git push heroku main
  1. Enjoy your api at https://your-app-name.herokuapp.com