1
0
Fork 0

weewx: Switch to oci-containers config

This commit is contained in:
Daniel Kempkens 2023-03-19 00:14:03 +01:00
parent 5038d57a17
commit 111469ab5f
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -5,27 +5,19 @@ let
data-dir = "/etc/container-weewx"; data-dir = "/etc/container-weewx";
in in
{ {
virtualisation.arion.projects.weewx.settings = { virtualisation.oci-containers.containers.weewx = {
services = { image = "ghcr.io/nifoc/weewx-docker:master";
weewx = { ports = [ "127.0.0.1:8000:8000" ];
service = { environment = {
image = "ghcr.io/nifoc/weewx-docker:master"; "TZ" = "Europe/Berlin";
container_name = "weewx";
restart = "unless-stopped";
ports = [ "127.0.0.1:8000:8000" ];
environment = {
"TZ" = "Europe/Berlin";
};
volumes = [
"${data-dir}:/data"
];
labels = {
"com.centurylinklabs.watchtower.enable" = "true";
"io.containers.autoupdate" = "registry";
};
};
};
}; };
volumes = [
"${data-dir}:/data"
];
extraOptions = [
"--label=com.centurylinklabs.watchtower.enable=true"
"--label=io.containers.autoupdate=registry"
];
}; };
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [