Library | Version |
---|---|
PyTelegramBotAPI | 3.7.6 |
psycopg2-binary | 2.8.6 |
requests | 2.25.1 |
Variable | Value |
---|---|
TOKEN | Telegram bot token |
DB | Database name |
DB_user | Database user |
DB_port | Database port |
DB_pass | Database user password |
DB_host | Database host |
-
Create
.env
fileTELEGRAM_BOT_TOKEN=telegram bot token
-
Run app
docker-compose up bot
-
Fill
env.prod.ps1
file$Env:TELEGRAM_BOT_TOKEN="telegram bot token" $Env:DB_NAME="prodction db name" $Env:DB_HOST="production db host" $Env:DB_PORT="production db port" $Env:DB_USER="production db user" $Env:DB_PASSWORD="production db password"
-
Run
genStack.ps1
script# Windows ./getStack.ps1 # Linux pwsh getStack.ps1