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";
in
{
virtualisation.arion.projects.weewx.settings = {
services = {
weewx = {
service = {
image = "ghcr.io/nifoc/weewx-docker:master";
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";
};
};
};
virtualisation.oci-containers.containers.weewx = {
image = "ghcr.io/nifoc/weewx-docker:master";
ports = [ "127.0.0.1:8000:8000" ];
environment = {
"TZ" = "Europe/Berlin";
};
volumes = [
"${data-dir}:/data"
];
extraOptions = [
"--label=com.centurylinklabs.watchtower.enable=true"
"--label=io.containers.autoupdate=registry"
];
};
systemd.tmpfiles.rules = [