Added compose for watchtower setup
This commit is contained in:
35
docker-compose/The2Watchtowers/docker-compose.yml
Normal file
35
docker-compose/The2Watchtowers/docker-compose.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
version: "3"
|
||||
services:
|
||||
autoupdate:
|
||||
image: containrrr/watchtower
|
||||
container_name: watchtower
|
||||
environment:
|
||||
TZ: Europe/Stockholm
|
||||
WATCHTOWER_SCHEDULE: 0 0 */12 * * *
|
||||
WATCHTOWER_NOTIFICATION_URL: discord://XXXX@xxxxx
|
||||
WATCHTOWER_NOTIFICATION_TEMPLATE: "{{range .}}{{.Time.Format \"2006-01-02 15:04:05\"}} ({{.Level}}): {{.Message}}{{println}}{{end}}"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
command: --scope wtautoupdate
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.scope=wtautoupdate"
|
||||
hostname: "Hostname-AutoUpdate"
|
||||
restart: unless-stopped
|
||||
reportupdate:
|
||||
image: containrrr/watchtower
|
||||
container_name: watchtower
|
||||
environment:
|
||||
TZ: Europe/Stockholm
|
||||
WATCHTOWER_MONITOR_ONLY: 'true'
|
||||
WATCHTOWER_SCHEDULE: 0 0 */13 * * *
|
||||
WATCHTOWER_NOTIFICATION_URL: discord://XXXX@xxxxx
|
||||
WATCHTOWER_NOTIFICATION_TEMPLATE: "{{range .}}{{.Time.Format \"2006-01-02 15:04:05\"}} ({{.Level}}): {{.Message}}{{println}}{{end}}"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
command: --scope wtreportupdate
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.scope=wtreportupdate"
|
||||
hostname: "Hostname-AutoUpdate"
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user