fix: Update last_triggered_at timestamp and refine docker-compose configuration

This commit is contained in:
Andre Beging
2025-10-07 14:09:49 +02:00
parent 8e3f2ee9f5
commit 85094f8683
2 changed files with 8 additions and 19 deletions

View File

@@ -11,7 +11,7 @@
"chat_id": "@TroogS", "chat_id": "@TroogS",
"message": ":*\n*FETT!* nichtfett **Kursiiiieeev**", "message": ":*\n*FETT!* nichtfett **Kursiiiieeev**",
"created_at": "2025-10-07T09:48:11+00:00", "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", "hook_id": "i10ofwya",

View File

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