dennisvandalen / instapy-docker

🐳 Docker config and documentation for running InstaPy with Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InstaPy-Docker 🐳

MIT license Docker Cloud Build Status Docker Pulls Backers on Open Collective Sponsors on Open Collective Discord

Table of contents

  1. Running InstaPy with docker
  2. Running InstaPy with docker-compose

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 with bot. 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 or docker 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 with bot. 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 or docker 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

About

🐳 Docker config and documentation for running InstaPy with Docker

License:GNU General Public License v3.0


Languages

Language:Dockerfile 78.1%Language:Shell 21.9%