2022-07-31 00:36:06 +02:00
|
|
|
let
|
2022-07-31 15:10:28 +02:00
|
|
|
secret = import ../../secret/container/webserver;
|
2022-07-31 12:41:00 +02:00
|
|
|
custom-config = import ./config.nix { inherit secret; };
|
2022-07-31 00:36:06 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
virtualisation.arion.projects.webserver.settings = {
|
|
|
|
services = {
|
2022-11-27 17:59:57 +01:00
|
|
|
mosquitto = {
|
2022-11-19 18:02:18 +01:00
|
|
|
service = {
|
2022-11-27 17:59:57 +01:00
|
|
|
image = "eclipse-mosquitto:2";
|
|
|
|
container_name = "mosquitto";
|
2022-11-19 18:02:18 +01:00
|
|
|
restart = "unless-stopped";
|
2022-11-27 17:59:57 +01:00
|
|
|
ports = [ "1883:1883" ];
|
|
|
|
user = "nobody";
|
|
|
|
volumes = [
|
|
|
|
"/etc/container-webserver/mosquitto:/mosquitto/config:ro"
|
|
|
|
];
|
2022-11-19 18:02:18 +01:00
|
|
|
labels = {
|
|
|
|
"com.centurylinklabs.watchtower.enable" = "true";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-07-31 16:40:01 +02:00
|
|
|
weewx = {
|
|
|
|
service = {
|
|
|
|
image = "ghcr.io/nifoc/weewx-docker:master";
|
2022-11-19 19:09:40 +01:00
|
|
|
container_name = "weewx";
|
2022-08-02 21:05:58 +02:00
|
|
|
restart = "unless-stopped";
|
2022-11-27 17:51:03 +01:00
|
|
|
depends_on = [ "mosquitto" ];
|
2022-12-26 17:53:21 +01:00
|
|
|
ports = [ "127.0.0.1:8000:8000" ];
|
2022-07-31 16:40:01 +02:00
|
|
|
environment = {
|
|
|
|
"TZ" = "Europe/Berlin";
|
|
|
|
};
|
|
|
|
volumes = [
|
|
|
|
"/etc/container-webserver/weewx:/data"
|
|
|
|
];
|
2023-02-19 23:34:09 +01:00
|
|
|
labels = {
|
|
|
|
"com.centurylinklabs.watchtower.enable" = "true";
|
|
|
|
};
|
2023-01-22 13:47:36 +01:00
|
|
|
};
|
|
|
|
};
|
2022-07-31 00:36:06 +02:00
|
|
|
};
|
|
|
|
};
|
2022-07-31 12:34:06 +02:00
|
|
|
} // custom-config
|