chore: initial commit with counter bot, docker compose enhancements, html formatting, startup + join announcements

This commit is contained in:
Andre Beging
2025-09-30 09:14:43 +02:00
parent 6b337603bf
commit 2430b15b2c
7 changed files with 568 additions and 144 deletions

29
docker-compose.yaml Normal file
View File

@@ -0,0 +1,29 @@
version: '3.9'
services:
counterbot:
build: .
container_name: counterbot
restart: unless-stopped
# Entweder environment Schlüssel direkt setzen oder eine .env Datei mit docker compose verwenden.
environment:
# Liefert das Telegram Bot Token (nicht in Git committen). Kann auch via .env Datei bereitgestellt werden.
- BOT_TOKEN=${BOT_TOKEN}
# Optional: Startup Ankündigung an kommagetrennte Chat IDs (z.B. -4549916385)
- STARTUP_ANNOUNCE_CHAT_IDS=${STARTUP_ANNOUNCE_CHAT_IDS:-}
# Optional: Begrüßung aller neuen Mitglieder (true/false)
- ANNOUNCE_ALL_JOINS=${ANNOUNCE_ALL_JOINS:-false}
# Standard Pfade
- CONFIG_FILE=/app/config.yaml
- DATA_DIR=/data
volumes:
- counterbot_data:/data
# Optional: eigene angepasste config.yaml aus Host einbinden
# - ./config.yaml:/app/config.yaml:ro
# Keine Ports nötig bei Long Polling
# healthcheck:
# test: ["CMD", "python", "-c", "import os,sys; sys.exit(0)"]
# interval: 1m
# timeout: 5s
# retries: 3
volumes:
counterbot_data: