fix: Update last_triggered_at timestamp and refine docker-compose configuration
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"chat_id": "@TroogS",
|
||||
"message": ":*\n*FETT!* nichtfett **Kursiiiieeev**",
|
||||
"created_at": "2025-10-07T09:48:11+00:00",
|
||||
"last_triggered_at": "2025-10-07T11:34:41+00:00"
|
||||
"last_triggered_at": "2025-10-07T11:45:45+00:00"
|
||||
},
|
||||
{
|
||||
"hook_id": "i10ofwya",
|
||||
|
||||
@@ -1,33 +1,22 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
telegram-hook:
|
||||
build: .
|
||||
image: git.beging.de/troogs/tgmessagehook:latest
|
||||
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"
|
||||
BASE_URL: "https://tghook.melvin.beging.de"
|
||||
volumes:
|
||||
- session_data:/data
|
||||
- /docker/data/tghook:/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"
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.tghook.rule=Host(`tghook.melvin.beging.de`)
|
||||
- traefik.http.services.tghook.loadbalancer.server.port=8000
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
volumes:
|
||||
session_data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user