diff --git a/.gitignore b/.gitignore index f163887..f96f1b6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,2 @@ -config.json TBot/ -logs/ -__pycache__/ -.gitignore -docker-compose.yml \ No newline at end of file +logs/* \ No newline at end of file diff --git a/Middleware/__pycache__/anti_spam_middleware.cpython-312.pyc b/Middleware/__pycache__/anti_spam_middleware.cpython-312.pyc new file mode 100644 index 0000000..07eca31 Binary files /dev/null and b/Middleware/__pycache__/anti_spam_middleware.cpython-312.pyc differ diff --git a/databases/__pycache__/db_config.cpython-312.pyc b/databases/__pycache__/db_config.cpython-312.pyc new file mode 100644 index 0000000..29fa471 Binary files /dev/null and b/databases/__pycache__/db_config.cpython-312.pyc differ diff --git a/databases/__pycache__/postgresql.cpython-312.pyc b/databases/__pycache__/postgresql.cpython-312.pyc new file mode 100644 index 0000000..732526f Binary files /dev/null and b/databases/__pycache__/postgresql.cpython-312.pyc differ diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..4bd3705 --- /dev/null +++ b/docker/docker-compose.yml @@ -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"] diff --git a/handlers/__pycache__/handlers.cpython-312.pyc b/handlers/__pycache__/handlers.cpython-312.pyc new file mode 100644 index 0000000..376f779 Binary files /dev/null and b/handlers/__pycache__/handlers.cpython-312.pyc differ diff --git a/keyboard/__pycache__/keyboards.cpython-312.pyc b/keyboard/__pycache__/keyboards.cpython-312.pyc new file mode 100644 index 0000000..47b68a5 Binary files /dev/null and b/keyboard/__pycache__/keyboards.cpython-312.pyc differ diff --git a/utils/__pycache__/LogCon.cpython-312.pyc b/utils/__pycache__/LogCon.cpython-312.pyc new file mode 100644 index 0000000..32de622 Binary files /dev/null and b/utils/__pycache__/LogCon.cpython-312.pyc differ