feat: replace watchtower with podman auto-update
This commit is contained in:
parent
59d27f4367
commit
7beebf6a6a
3 changed files with 23 additions and 24 deletions
services
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue