mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-14 18:34:53 +01:00
build
This commit is contained in:
4
__swarm/watchtower/.env
Executable file
4
__swarm/watchtower/.env
Executable file
@@ -0,0 +1,4 @@
|
||||
APPNAME=watchtower
|
||||
DOCKER_REGISTRY=r.sectorq.eu/library/
|
||||
#RESTART=always
|
||||
WT_HOSTNAME=M-SERVER
|
||||
50
__swarm/watchtower/docker-compose.yml
Executable file
50
__swarm/watchtower/docker-compose.yml
Executable 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
14
__swarm/watchtower/logging.yml
Executable 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
8
__swarm/watchtower/stack.env
Executable 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
|
||||
Reference in New Issue
Block a user