Skip to content

Instantly share code, notes, and snippets.

@dudefoxlive
Created January 1, 2023 01:29
Show Gist options
  • Save dudefoxlive/1038d54fc4a77788bf2ce6b8732332ed to your computer and use it in GitHub Desktop.
Save dudefoxlive/1038d54fc4a77788bf2ce6b8732332ed to your computer and use it in GitHub Desktop.
Watchtower Docker Compose
---
version: '3'
services:
WatchTower:
image: containrrr/watchtower
container_name: WatchTower
restart: unless-stopped
environment:
# This is the email that it will send from
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=example@gmail.com
# This is the email server. You will need to google for your email settings.
# If you are using gmail leave this alone.
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.gmail.com
# This is the password for the email you are sending from.
# If using google generate a App Password if you have 2FA enabled.
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=TOPSECRETPASSWORD
# This is the port that will be used when sending emails.
# If using gmail leave this alone
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587
# This is the username for signing into the email.
# If using gmail make this the same as the from email.
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=example@gmail.com
# This is the email you want to send to.
- WATCHTOWER_NOTIFICATION_EMAIL_TO=youremail@gmail.com
- WATCHTOWER_NOTIFICATIONS=email
volumes:
- /var/run/docker.sock:/var/run/docker.sock:rw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment