A web application that allows you to manage and respond to Instagram comments through a simple interface.
- View recent Instagram posts with thumbnails
- Display comments and their replies
- Respond to comments directly from the interface
- Real-time UI updates
- Docker support for easy deployment
- Docker and Docker Compose installed on your system
- Instagram account credentials
- Instagram Business Account ID
- Instagram App ID and Secret
- Create a
.envfile with your credentials:
INSTAGRAM_USERNAME=your_username
INSTAGRAM_PASSWORD=your_password
INSTAGRAM_APP_ID=your_app_id
APP_SECRET=your_app_secret
BUSINESS_ACCOUNT_ID=your_business_account_id- Run the application:
docker-compose up -dThe application will be available at http://localhost:51968
| Variable | Description |
|---|---|
| INSTAGRAM_USERNAME | Your Instagram username |
| INSTAGRAM_PASSWORD | Your Instagram password |
| INSTAGRAM_APP_ID | Your Instagram App ID |
| APP_SECRET | Your App Secret |
| BUSINESS_ACCOUNT_ID | Your Instagram Business Account ID |
| DOCKER_IMAGE | (Optional) Custom Docker image name |
To build and push the Docker image:
# Build the image
docker build -t quecreate/instagram-comments:latest .
# Push to Docker Hub
docker push quecreate/instagram-comments:latestTo run the application locally without Docker:
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Run the application:
python app_private.py- Store sensitive credentials securely
- Use environment variables for configuration
- The application runs as a non-root user in Docker
- Consider using Docker secrets in production
The application uses a Docker volume (instagram_data) to persist data between container restarts.
The Docker container includes health checks that monitor the application's status every 30 seconds.
- If the container fails to start, check the logs:
docker-compose logs -f instagram-comments- To restart the service:
docker-compose restart instagram-comments- To rebuild the container:
docker-compose up -d --buildMIT License
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request