This commit is contained in:
2024-12-07 23:02:33 +03:00
parent b0bafcda5b
commit 050ca9936b
7 changed files with 49 additions and 28 deletions

View File

@@ -42,11 +42,15 @@ services:
context: .
container_name: telegram_bot
environment:
POSTGRES_URL: "postgresql://AH3J9GSPBYOP:uPS9?y~mcu2@postgres:5432/bot_db"
TOKEN: "7502946151:AAHspA8iieJqrhUHZveILGfeZWp-VqQhEnQ"
POSTGRES_URL: "postgresql+asyncpg://AH3J9GSPBYOP:uPS9?y~mcu2@postgres:5432/bot_db"
MONGO_URL: "mongodb://root:itOj4CE2miKR@mongodb:27017"
DB_NAME: "MongoDBSub&Ser"
SERVER_COLLECTION: "servers"
PLAN_COLLECTION: "plans"
volumes:
- logs_data:/app/logs # Логи сохраняются в контейнере
- logs_data:/app/logs
depends_on:
- postgres
- mongodb
command: ["python", "main.py"] # Задаем явную команду запуска
command: ["python", "main.py"]