Files
tg2max-relay/docker-compose.yml
T

30 lines
856 B
YAML

services:
relay:
build: .
image: tg2max-relay:latest
restart: unless-stopped
env_file:
- path: .env
required: false
environment:
TZ: ${TZ:-Europe/Moscow}
WATCH_DIR: /watch
STATE_DIR: /data
MAX_DEVICE_ID: ${MAX_DEVICE_ID:-}
MAX_LOGIN_TOKEN: ${MAX_LOGIN_TOKEN:-}
MAX_TARGET_CHAT: ${MAX_TARGET_CHAT:-}
POLL_INTERVAL: ${POLL_INTERVAL:-10}
REPORT_GLOBS: ${REPORT_GLOBS:-otchet_*.pdf}
ALERT_RE: ${ALERT_RE:-(?i)(⚠|Сбой по расписанию|отчёт неполный|FATAL|ERROR report_shot)}
RELAY_HELLO: ${RELAY_HELLO:-true}
MAX_SESSION_FILE: /data/max_session.json
volumes:
- relay-state:/data
- report-out:/watch:ro
volumes:
relay-state:
report-out:
name: n51q832cjhizblqwbibgjxsc_report-shot-output
external: true