From 50f62ec0c113473395a1b86ac122c1605d045edd Mon Sep 17 00:00:00 2001 From: piccihud Date: Thu, 26 Dec 2024 14:42:35 +0100 Subject: [PATCH] added watchtower docker compose file --- watchtower/.env | 7 +++++++ watchtower/docker-compose.yml | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 watchtower/.env create mode 100644 watchtower/docker-compose.yml diff --git a/watchtower/.env b/watchtower/.env new file mode 100644 index 0000000..1e8ca08 --- /dev/null +++ b/watchtower/.env @@ -0,0 +1,7 @@ +WATCHTOWER_NOTIFICATIONS_HOSTNAME="Ilnostropianetaselvaggio Server" +WATCHTOWER_NOTIFICATION_EMAIL_FROM="" +WATCHTOWER_NOTIFICATION_EMAIL_TO="" +WATCHTOWER_NOTIFICATION_EMAIL_SERVER="" +WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587 +WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER="" +WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD="" \ No newline at end of file diff --git a/watchtower/docker-compose.yml b/watchtower/docker-compose.yml new file mode 100644 index 0000000..0155de3 --- /dev/null +++ b/watchtower/docker-compose.yml @@ -0,0 +1,17 @@ + image: containrrr/watchtower + env_file: .env + volumes: + - /var/run/docker.sock:/var/run/docker.sock + environment: + WATCHTOWER_SCHEDULE: "0 0 7 * * *" + TZ: Europe/Rome + WATCHTOWER_MONITOR_ONLY: true + WATCHTOWER_CLEANUP: true + WATCHTOWER_NOTIFICATIONS: email + WATCHTOWER_NOTIFICATIONS_HOSTNAME: ${WATCHTOWER_NOTIFICATIONS_HOSTNAME} + WATCHTOWER_NOTIFICATION_EMAIL_FROM: ${WATCHTOWER_NOTIFICATION_EMAIL_FROM} + WATCHTOWER_NOTIFICATION_EMAIL_TO: ${WATCHTOWER_NOTIFICATION_EMAIL_TO} + WATCHTOWER_NOTIFICATION_EMAIL_SERVER: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER} + WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT} + WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER} + WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD} \ No newline at end of file