- Generate docker-compose react template
npx compose-it -u <username> -d <project name>
- Test docker-compose locally. Check http://localhost:3000
docker-compose up
- (optional if already logged in) Log in to Heroku
heroku container:login
# app name is optional, heroku will randomly pick a name if no name is given
heroku create [app name]
# build image and push to container registry
heroku container:push <image name>
# release the image to your app
heroku container:release <image name>
# open the app in your browser
heroku open
heroku container:push <image name>
heroku container:rm <image name>