This commit is contained in:
2024-12-17 18:23:06 +03:00
parent 13d00f3bde
commit 197e291bdc
8 changed files with 31 additions and 5 deletions

6
.gitignore vendored
View File

@@ -1,6 +1,2 @@
config.json
TBot/
logs/
__pycache__/
.gitignore
docker-compose.yml
logs/*

Binary file not shown.

Binary file not shown.

30
docker/docker-compose.yml Normal file
View File

@@ -0,0 +1,30 @@
version: '3.8'
networks:
bot_network:
external: true
volumes:
logs_data:
services:
bot:
networks:
- bot_network
build:
context: ..
dockerfile: docker/Dockerfile
container_name: telegram_bot
environment:
TOKEN: "8104061818:AAGJ6H1PTFmfJm-_mZqGv7EnHxGl4dZndnU"
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
depends_on:
- postgres
- mongodb
command: ["python", "main.py"]

Binary file not shown.

Binary file not shown.

Binary file not shown.