# Overlay for the kill-a-worker acceptance run. It swaps the real Telegram # for the fake one, so no bot token is needed, and slows downloads down so # there is time to kill a worker in the middle of one. # # deploy/acceptance/kill-worker.sh # MODE=compose uses this file # # Never expose this setup to the internet: the fake Telegram accepts # anything from anyone. services: faketelegram: build: # Paths in an overlay are relative to the first compose file, which # is the one in the repository root. context: . dockerfile: deploy/Dockerfile target: faketelegram image: dlbot-faketelegram:local ports: - "127.0.0.1:${FAKE_PORT:-8090}:8090" core: depends_on: - faketelegram environment: BOT_TOKEN: "123456789:FAKEfakeFAKEfakeFAKEfakeFAKEfake-01" TELEGRAM_API_URL: http://faketelegram:8090 QUEUE_LEASE: 12s QUEUE_HEARTBEAT: 4s LOG_FORMAT: text worker-a: environment: WORKER_CONCURRENCY: "1" WORKER_HEARTBEAT: 4s YTDLP_EXTRA_ARGS: "--limit-rate ${RATE:-50K}" YTDLP_AUTO_UPDATE: "0" LOG_FORMAT: text worker-b: environment: WORKER_CONCURRENCY: "1" WORKER_HEARTBEAT: 4s YTDLP_EXTRA_ARGS: "--limit-rate ${RATE:-50K}" YTDLP_AUTO_UPDATE: "0" LOG_FORMAT: text