mirror of
https://github.com/EchoZenith/TelegramContactBot.git
synced 2026-02-09 18:05:20 +00:00
- 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
19 lines
295 B
YAML
19 lines
295 B
YAML
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"
|
|
|