volumes: data: services: fix-perms: image: ghcr.io/avbor/docker-telegram-bot-api:latest container_name: telegram-bot-api-fix-perms profiles: - fix-perms user: root entrypoint: ["chown"] command: ["-R", "telegram-bot-api:telegram-bot-api", "/var/lib/telegram-bot-api"] volumes: - data:/var/lib/telegram-bot-api telegram-bot-api: container_name: telegram-bot-api image: ghcr.io/avbor/docker-telegram-bot-api:latest restart: unless-stopped volumes: - data:/var/lib/telegram-bot-api environment: - TELEGRAM_API_ID= - TELEGRAM_API_HASH= ports: - 8081:8081 - 127.0.0.1:8082:8082 healthcheck: test: ["CMD-SHELL", "curl -fsS http://localhost:8082 >/dev/null || exit 1"] interval: 30s timeout: 3s retries: 3 start_period: 15s command: - --local - --http-port=8081 - --http-stat-port=8082 - --dir=/var/lib/telegram-bot-api - --temp-dir=/var/lib/telegram-bot-api/temp - --verbosity=1 # - --tdlib-proxy-type=mtproto # - --proxy-server= # - --proxy-port= # - --proxy-secret=