feat: initial project setup

- Add bot.py with core Telegram Contact Bot logic
- Add Dockerfile and docker-compose for containerization
- Add requirements.txt for dependency management
- Add .env.example for environment configuration
This commit is contained in:
EchoZenith
2026-01-25 20:19:56 +08:00
parent 37ac5383cb
commit a4760bc373
5 changed files with 145 additions and 0 deletions

18
docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
version: '3.8'
services:
tg-bot:
build: .
container_name: tg-contact-bot
restart: always
# 环境变量配置
env_file:
- .env
volumes:
- ./data:/app/data
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"