Initial commit

This commit is contained in:
Andre Beging
2025-10-07 12:51:31 +02:00
commit c7f694d820
18 changed files with 1683 additions and 0 deletions

33
docker-compose.yml Normal file
View File

@@ -0,0 +1,33 @@
version: "3.9"
services:
telegram-hook:
build: .
container_name: telegram-hook
restart: unless-stopped
environment:
TELEGRAM_API_ID: "${TELEGRAM_API_ID}"
TELEGRAM_API_HASH: "${TELEGRAM_API_HASH}"
TELEGRAM_PHONE: "${TELEGRAM_PHONE:-}"
TELEGRAM_SESSION_NAME: "user-session"
TELEGRAM_SESSION_PATH: "/data/telegram.session"
DATABASE_PATH: "/data/hooks.db"
BASE_URL: "https://hook.example.com"
volumes:
- session_data:/data
labels:
traefik.enable: "true"
traefik.http.routers.telegramhook.rule: "Host(`hook.example.com`)"
traefik.http.routers.telegramhook.entrypoints: "websecure"
traefik.http.routers.telegramhook.tls: "true"
traefik.http.services.telegramhook.loadbalancer.server.port: "8000"
networks:
- proxy
volumes:
session_data:
driver: local
networks:
proxy:
external: true