Run Instapy on Heroku in a Docker Container
Run your InstaPy in the Heroku cloud.
- Install Heroku CLI on your system and do
$ heroku login
- Log in to Heroku container service
$ heroku container:login
-
Create the
.env
file (make sure Instagram credentials and proxy server parameters are set) - useenv_sample
as an example -
Create a new Heroku app for your bot:
$ ./heroku_init.sh <your-app-name>
- Build the container
docker-compose build
- Push the code to Heroku and release it into your app:
$ heroku container:push instapy && heroku container:release instapy
- Start the app:
$ heroku ps:scale instapy=1
- Observe your Instagram grow!
$ heroku logs --tail