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