Initial commit
This commit is contained in:
33
docker-compose.yml
Normal file
33
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user