2022-09-16 17:09:59 +02:00
|
|
|
{ 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 = {
|
|
|
|
WATCHTOWER_CLEANUP = "true";
|
2022-09-16 23:27:56 +02:00
|
|
|
WATCHTOWER_INCLUDE_STOPPED = "true";
|
2022-09-16 17:09:59 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|