InstaPy-Docker 🐳
Table of contents
Running InstaPy with docker
- Copy the quickstart example file from
docker-compose
directory to get started - Edit the file
docker_quicktart.py
to personalize how InstaPy will interact. All functions are the same than the classic installation mode. If you are new to InstaPy, we strongly suggest to have a look to InstaPy documentation to fully understand this file and how to modify it. Keep in mind all InstaPy functions should start withbot.
when running with Docker. - Start InstaPy container
docker pull instapy/instapy && \
docker run \
--name instapy \
-v /path_to_file/docker_quickstart.py:/code/docker_quickstart.py \
-d instapy
- Stop InstaPy container
docker stop instapy
- Remove InstaPy container
docker rm instapy
- Display InstaPy output logs
docker logs -f instapy
ordocker logs --tail 50 -f $(docker ps -a | grep instapy | cut -d " " -f 1)
Running InstaPy with docker-compose
- Clone this repository
git clone https://github.com/InstaPy/instapy-docker.git
- Change your directory to docker-compose
cd docker-compose
- Copy the quickstart example file to get started
cp -a docker_quickstart.py.example docker_quickstart.py
- Edit the file
docker_quicktart.py
to personalize how InstaPy will interact. All functions are the same than the classic installation mode. If you are new to InstaPy, we strongly suggest to have a look to InstaPy documentation to fully understand this file and how to modify it. Keep in mind all InstaPy functions should start withbot.
when running with Docker. - Start InstaPy container
docker-compose pull && docker-compose up -d --build web
- Stop InstaPy container
docker-compose stop web
- Stop and remove Docker configs
docker-compose down
- Display InstaPy output logs
docker logs -f instapy_web_1
ordocker logs --tail 50 -f $(docker ps -a | grep instapy_web | cut -d " " -f 1)
- Automatically run InstaPy or run it at a speified time (Example below: run it everyday at 8:30AM)
- Edit your crontab file
- Add
30 8 * * * root cd /path_to_repo/docker-compose/ && docker-compose up -d --build