Files
TgMessageHook/docker-compose.yml
Andre Beging c7f694d820 Initial commit
2025-10-07 12:51:31 +02:00

34 lines
906 B
YAML

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