- 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>
Problem:
heroku container:push <image name>
Error: Missing required flag:
› -a, --app APP app to run command against
› See more help with --help
Solution:
heroku container:push <image name> -a [app name]
Problem:
Invalid auth permission
Solution:
sudo <command>
# OR
docker login
# OR
heroku login
# OR
heroku container:login