feat: replace watchtower with podman auto-update

This commit is contained in:
Felix Schröter 2023-08-10 12:46:51 +02:00
parent 59d27f4367
commit 7beebf6a6a
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 23 additions and 24 deletions

View file

@ -1,20 +0,0 @@
{ config, lib, pkgs, ... }:
# watchtower keeps images & containers up-to-date
{
virtualisation.oci-containers.containers = {
watchtower = {
image = "containrrr/watchtower";
volumes = [
"/var/run/podman/podman.sock:/var/run/docker.sock"
"/etc/localtime:/etc/localtime:ro"
];
environment = {
# some containers take really long to shut down
WATCHTOWER_TIMEOUT = "120s";
WATCHTOWER_CLEANUP = "true";
WATCHTOWER_INCLUDE_STOPPED = "true";
};
};
};
}