1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-06-16 15:06:53 +00:00
2023-10-09 22:01:52 -06:00

2.3 KiB

Self-Hosting Guide

This guide provides step-by-step instructions for setting up and running this project on your local machine, whether for development, testing, or personal use.

Pre-requisites

Ensure the following are installed or obtained before proceeding:

  • Docker: The project is containerized using Docker Compose, allowing it to run on any system with Docker installed.
  • API Keys:

!!! tip The bot will still operate without a marketdata.app key but will revert to using only cryptocurrency data.

!!! note To enable donation acceptance, obtain a Stripe API key and provide a STRIPE key to your bot. https://stripe.com/

Setup Instructions

  1. Download/Clone the Repository:

    • Download or clone this repository to your local machine.
  2. Configure Environment Variables:

    • Navigate to the project directory and locate the .env file.
    • Fill in the .env file with your obtained API keys:
    MARKETDATA=your_marketdata_api_key
    STRIPE=your_stripe_api_key
    TELEGRAM=your_telegram_api_key
    DISCORD=your_discord_api_key
    

    Alternatively, pass the variables using Docker Compose environment variables or command-line arguments.

  3. Build and Run the Bot:

    • Open a terminal in the project directory.
    • Build and run both bots using Docker Compose:
    docker-compose up
    

Now, your bot(s) should be up and running! If you're unfamiliar with Docker, reviewing the Docker documentation is highly recommended to gain better control over your bot and understand Docker commands better.