weewx: Switch to oci-containers config
This commit is contained in:
parent
5038d57a17
commit
111469ab5f
1 changed files with 12 additions and 20 deletions
|
@ -5,13 +5,8 @@ let
|
|||
data-dir = "/etc/container-weewx";
|
||||
in
|
||||
{
|
||||
virtualisation.arion.projects.weewx.settings = {
|
||||
services = {
|
||||
weewx = {
|
||||
service = {
|
||||
virtualisation.oci-containers.containers.weewx = {
|
||||
image = "ghcr.io/nifoc/weewx-docker:master";
|
||||
container_name = "weewx";
|
||||
restart = "unless-stopped";
|
||||
ports = [ "127.0.0.1:8000:8000" ];
|
||||
environment = {
|
||||
"TZ" = "Europe/Berlin";
|
||||
|
@ -19,13 +14,10 @@ in
|
|||
volumes = [
|
||||
"${data-dir}:/data"
|
||||
];
|
||||
labels = {
|
||||
"com.centurylinklabs.watchtower.enable" = "true";
|
||||
"io.containers.autoupdate" = "registry";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
extraOptions = [
|
||||
"--label=com.centurylinklabs.watchtower.enable=true"
|
||||
"--label=io.containers.autoupdate=registry"
|
||||
];
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
|
|
Loading…
Reference in a new issue