Files
telegram-backup-downloader/docker-compose.yml

24 lines
757 B
YAML

version: "3.9"
services:
telegram-backup:
image: hoelee/telegram-backup-downloader:latest
container_name: telegram-backup
restart: unless-stopped
user: root
volumes:
# config.json must be read-write — the program writes back to it (e.g. flips updateonce to false)
- ./config.json:/app/config.json
- ./telegram_session.session:/app/telegram_session.session
- ./channels:/app/channels
- ./logs:/app/logs
ports:
- "8080:8080"
environment:
- TZ=Asia/Kuala_Lumpur
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health', timeout=3)"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s