This commit is contained in:
2025-11-30 12:34:45 +01:00
parent e5f390ad42
commit 13e6dd903a
125 changed files with 5482 additions and 28 deletions

4
__swarm/watchtower/.env Executable file
View File

@@ -0,0 +1,4 @@
APPNAME=watchtower
DOCKER_REGISTRY=r.sectorq.eu/library/
#RESTART=always
WT_HOSTNAME=M-SERVER

View File

@@ -0,0 +1,50 @@
---
services:
watchtower:
#command: --cleanup --label-enable --http-api-periodic-polls --http-api-metrics
command: --cleanup --label-enable --http-api-update --http-api-metrics
env_file: stack.env
environment:
WATCHTOWER_HTTP_API_TOKEN: l4c1j4yd33Du5lo
WATCHTOWER_LABEL_ENABLE: 'true'
WATCHTOWER_LIFECYCLE_HOOKS: 'true'
WATCHTOWER_NOTIFICATIONS: email shoutrrr
WATCHTOWER_NOTIFICATIONS_HOSTNAME: ${WT_HOSTNAME:-M-SERVER}
WATCHTOWER_NOTIFICATIONS_LEVEL: debug
WATCHTOWER_NOTIFICATION_EMAIL_DELAY: '2'
WATCHTOWER_NOTIFICATION_EMAIL_FROM: sectorq77@gmail.com
WATCHTOWER_NOTIFICATION_EMAIL_SERVER: smtp.gmail.com
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: uuhmmedfsjddmgbg
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: '465'
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: sectorq77
WATCHTOWER_NOTIFICATION_EMAIL_SUBJECTTAG: NewUpdates
WATCHTOWER_NOTIFICATION_EMAIL_TO: jaydee@sectorq.eu
WATCHTOWER_POLL_INTERVAL: 43200
extends:
file: logging.yml
service: ${LOGGING:-syslog}
image: ${DOCKER_REGISTRY:-}containrrr/watchtower:latest
labels:
com.centurylinklabs.watchtower.enable: 'true'
homepage.container: watchtower-watchtower-1
homepage.description: Docker container monitoring
homepage.group: Infrastructure
homepage.href: http://192.168.77.101:8094
homepage.icon: watchtower.png
homepage.name: Watchtower
homepage.server: my-docker
homepage.weight: '100'
homepage.widget.key: l4c1j4yd33Du5lo
homepage.widget.type: watchtower
homepage.widget.url: http://192.168.77.101:8094
wud.watch: true
wud.watch.digest: true
ports:
- 8094:8080
restart: ${RESTART:-unless-stopped}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /share/docker_data/watchtower/.docker/config.json:/config.json

14
__swarm/watchtower/logging.yml Executable file
View File

@@ -0,0 +1,14 @@
---
services:
syslog:
logging:
driver: syslog
options:
tag: mailu-front
loki:
logging:
driver: loki
options:
loki-url: "http://192.168.77.101:3100/loki/api/v1/push"

8
__swarm/watchtower/stack.env Executable file
View File

@@ -0,0 +1,8 @@
WATCHTOWER_NOTIFICATIONS=email
WATCHTOWER_NOTIFICATION_EMAIL_FROM=jaydee@sectorq.eu
WATCHTOWER_NOTIFICATION_EMAIL_TO=jaydee@sectorq.eu
WATCHTOWER_NOTIFICATION_EMAIL_SERVER=mail.sectorq.eu
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=25
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=jaydee@sectorq.eu
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=l4c1j4yd33Du5lo
WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2