version: "2.2" services: notifier: image: poma/docker-telegram-notifier volumes: - /var/run/docker.sock:/var/run/docker.sock:ro # for local instance # - ./certs:/certs # for remote instance environment: # How to create bot: https://core.telegram.org/bots#3-how-do-i-create-a-bot # How to get chat id: https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/32572159#32572159 TELEGRAM_NOTIFIER_BOT_TOKEN: TELEGRAM_NOTIFIER_CHAT_ID: # optional args # ONLY_WHITELIST: true # DOCKER_HOST: tcp://example.com:2376 # http/https is detected by port number # DOCKER_CERT_PATH: /certs # should contain ca.pem, cert.pem, key.pem