feat: add autoupdate label to containers

As it's required for `podman auto-update` to work.
This commit is contained in:
Felix Schröter 2023-09-28 16:41:50 +02:00
parent 50433a0b65
commit 8ea848888a
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 10 additions and 3 deletions

View file

@ -58,7 +58,8 @@ in {
};
# only secrets need to be included, e.g. FOCALBOARD_DBCONFIG
environmentFiles = [ config.age.secrets.focalboard-env.path ];
extraOptions = [ "--network=host" ];
extraOptions =
[ "--network=host" "--label=io.containers.autoupdate=registry" ];
};
systemd.services."${ociBackend}-focalboard" = {

View file

@ -35,6 +35,7 @@ let
"--add-host=immich-machine-learning:127.0.0.1"
"--add-host=immich-web:127.0.0.1"
"--add-host=typesense:127.0.0.1"
"--label=io.containers.autoupdate=registry"
];
};
in {
@ -118,7 +119,8 @@ in {
environment.TYPESENSE_DATA_DIR = "/data";
environmentFiles = [ config.age.secrets.immich-typesense-env.path ];
volumes = [ "${typesenseDataDir}:/data" ];
extraOptions = [ "--network=host" ];
extraOptions =
[ "--network=host" "--label=io.containers.autoupdate=registry" ];
};
};

View file

@ -52,7 +52,11 @@ in {
aliasgroup2 = mkAlias "cloud.felschr.com";
extra_params = "--o:ssl.enable=false --o:ssl.termination=true";
};
extraOptions = [ "--network=host" "--cap-add=MKNOD" ];
extraOptions = [
"--network=host"
"--cap-add=MKNOD"
"--label=io.containers.autoupdate=registry"
];
};
services.nginx.virtualHosts."office.felschr.com" = {
forceSSL = true;