watchtower: Run every 6h and update self
This commit is contained in:
parent
c645eed5b9
commit
5107567c5d
1 changed files with 4 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
||||||
containers.watchtower = {
|
containers.watchtower = {
|
||||||
image = "containrrr/watchtower";
|
image = "containrrr/watchtower";
|
||||||
environment = {
|
environment = {
|
||||||
WATCHTOWER_POLL_INTERVAL = "28800";
|
WATCHTOWER_POLL_INTERVAL = "21600";
|
||||||
WATCHTOWER_LABEL_ENABLE = "true";
|
WATCHTOWER_LABEL_ENABLE = "true";
|
||||||
WATCHTOWER_NOTIFICATIONS = "shoutrrr";
|
WATCHTOWER_NOTIFICATIONS = "shoutrrr";
|
||||||
WATCHTOWER_NOTIFICATIONS_HOSTNAME = config.networking.hostName;
|
WATCHTOWER_NOTIFICATIONS_HOSTNAME = config.networking.hostName;
|
||||||
|
@ -30,6 +30,9 @@
|
||||||
"/var/run/docker.sock:/var/run/docker.sock"
|
"/var/run/docker.sock:/var/run/docker.sock"
|
||||||
"/root/.docker/config.json:/config.json:ro"
|
"/root/.docker/config.json:/config.json:ro"
|
||||||
];
|
];
|
||||||
|
extraOptions = [
|
||||||
|
"--label com.centurylinklabs.watchtower.enable=true"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue