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,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 = [
|
||||||
|
|
Loading…
Reference in a new issue