-
Download and run the installation script:
wget https://raw.githubusercontent.com/igroman787/mytonctrl_bot/master/install.sh chmod +x install.sh bash ./install.sh
The script will create:
- the project source directory:
/usr/src/mytonctrl_bot; - the working directory:
/var/mytonctrl_bot; - a systemd service named
mytonctrl_bot.
- the project source directory:
-
Navigate to the project source directory:
cd /usr/src/mytonctrl_bot -
Configure the settings file:
cp settings.json.example settings.json # edit settings.json -
Start the service:
sudo systemctl start mytonctrl_bot
-
Install Docker and Docker Compose.
-
Clone the repository:
git clone --recursive https://github.com/igroman787/mytonctrl_bot cd mytonctrl_bot -
Configure the settings file:
cp settings.json.example settings.json # edit settings.json -
Start the container:
docker compose up -d
The
./datadirectory on the host is mounted as the application’s working directory inside the container at/usr/local/bin/mytonctrl_bot.