mirror of
https://github.com/EchoZenith/TelegramContactBot.git
synced 2026-02-09 18:05:20 +00:00
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:
18
docker-compose.yml
Normal file
18
docker-compose.yml
Normal 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"
|
||||
|
||||
Reference in New Issue
Block a user