2022-07-30 22:36:06 +00:00
|
|
|
let
|
2022-07-31 13:10:28 +00:00
|
|
|
secret = import ../../secret/container/webserver;
|
2022-07-31 10:41:00 +00:00
|
|
|
custom-config = import ./config.nix { inherit secret; };
|
2022-07-30 22:36:06 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
virtualisation.arion.projects.webserver.settings = {
|
|
|
|
services = {
|
2022-07-30 22:52:43 +00:00
|
|
|
mosquitto = {
|
|
|
|
service = {
|
|
|
|
image = "eclipse-mosquitto:2";
|
|
|
|
container_name = "mosquitto";
|
2022-08-02 19:05:58 +00:00
|
|
|
restart = "unless-stopped";
|
2022-07-30 22:52:43 +00:00
|
|
|
ports = [ "1883:1883" ];
|
2022-07-31 10:23:30 +00:00
|
|
|
user = "nobody";
|
2022-07-30 22:52:43 +00:00
|
|
|
volumes = [
|
|
|
|
"/etc/container-webserver/mosquitto:/mosquitto/config:ro"
|
|
|
|
];
|
2022-08-04 22:40:11 +00:00
|
|
|
labels = {
|
|
|
|
"com.centurylinklabs.watchtower.enable" = "true";
|
|
|
|
};
|
2022-07-30 22:52:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-11-19 17:02:18 +00:00
|
|
|
cloudflared = {
|
|
|
|
service = {
|
|
|
|
image = "cloudflare/cloudflared:latest";
|
|
|
|
container_name = "cloudflared";
|
|
|
|
restart = "unless-stopped";
|
|
|
|
command = [ "tunnel" "--no-autoupdate" "run" "--token" secret.container.webserver.cloudflared.config.token ];
|
|
|
|
labels = {
|
|
|
|
"com.centurylinklabs.watchtower.enable" = "true";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-07-31 10:55:19 +00:00
|
|
|
nifoc-pw-docs = {
|
|
|
|
service = {
|
|
|
|
image = "ghcr.io/nifoc/nifoc.pw-docs:master";
|
2022-11-19 18:09:40 +00:00
|
|
|
container_name = "nifoc-pw-docs";
|
2022-08-02 19:05:58 +00:00
|
|
|
restart = "unless-stopped";
|
2022-07-31 10:55:19 +00:00
|
|
|
labels = {
|
2022-08-04 22:40:11 +00:00
|
|
|
"com.centurylinklabs.watchtower.enable" = "true";
|
2022-07-31 10:55:19 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-07-31 13:10:28 +00:00
|
|
|
|
2022-07-31 14:40:01 +00:00
|
|
|
weewx = {
|
|
|
|
service = {
|
|
|
|
image = "ghcr.io/nifoc/weewx-docker:master";
|
2022-11-19 18:09:40 +00:00
|
|
|
container_name = "weewx";
|
2022-08-02 19:05:58 +00:00
|
|
|
restart = "unless-stopped";
|
2022-11-27 16:51:03 +00:00
|
|
|
depends_on = [ "mosquitto" ];
|
2022-07-31 14:40:01 +00:00
|
|
|
environment = {
|
|
|
|
"TZ" = "Europe/Berlin";
|
|
|
|
};
|
|
|
|
volumes = [
|
|
|
|
"/etc/container-webserver/weewx:/data"
|
|
|
|
];
|
|
|
|
labels = secret.container.webserver.weewx.labels;
|
|
|
|
};
|
|
|
|
};
|
2022-11-11 15:11:54 +00:00
|
|
|
|
|
|
|
# Matrix
|
|
|
|
|
2022-11-27 16:12:49 +00:00
|
|
|
# synapse = {
|
|
|
|
# service = {
|
|
|
|
# image = "matrixdotorg/synapse:latest";
|
|
|
|
# container_name = "synapse";
|
|
|
|
# restart = "unless-stopped";
|
|
|
|
# depends_on = [ "ipv6nat" ];
|
|
|
|
# networks = [ "webserver" ];
|
|
|
|
# volumes = [
|
|
|
|
# "/etc/container-matrix/synapse:/data"
|
|
|
|
# "/etc/container-matrix/telegram:/bridge-data/telegram:ro"
|
|
|
|
# "/etc/container-matrix/signal:/bridge-data/signal:ro"
|
|
|
|
# "/etc/container-matrix/whatsapp:/bridge-data/whatsapp:ro"
|
|
|
|
# ];
|
|
|
|
# labels = {
|
|
|
|
# "com.centurylinklabs.watchtower.enable" = "true";
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
#
|
|
|
|
# matrix-telegram = {
|
|
|
|
# service = {
|
|
|
|
# image = "dock.mau.dev/mautrix/telegram:latest";
|
|
|
|
# container_name = "mautrix-telegram";
|
|
|
|
# restart = "unless-stopped";
|
|
|
|
# depends_on = [
|
|
|
|
# "ipv6nat"
|
|
|
|
# "synapse"
|
|
|
|
# ];
|
|
|
|
# networks = [ "webserver" ];
|
|
|
|
# volumes = [
|
|
|
|
# "/etc/container-matrix/telegram:/data"
|
|
|
|
# ];
|
|
|
|
# labels = {
|
|
|
|
# "com.centurylinklabs.watchtower.enable" = "true";
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
#
|
|
|
|
# signald = {
|
|
|
|
# service = {
|
|
|
|
# image = "signald/signald:latest";
|
|
|
|
# container_name = "signald";
|
|
|
|
# restart = "unless-stopped";
|
|
|
|
# depends_on = [ "ipv6nat" ];
|
|
|
|
# networks = [ "webserver" ];
|
|
|
|
# volumes = [
|
|
|
|
# "/etc/container-matrix/signald:/signald"
|
|
|
|
# ];
|
|
|
|
# labels = {
|
|
|
|
# "com.centurylinklabs.watchtower.enable" = "true";
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
#
|
|
|
|
# matrix-signal = {
|
|
|
|
# service = {
|
|
|
|
# image = "dock.mau.dev/mautrix/signal:latest";
|
|
|
|
# container_name = "mautrix-signal";
|
|
|
|
# restart = "unless-stopped";
|
|
|
|
# depends_on = [
|
|
|
|
# "ipv6nat"
|
|
|
|
# "synapse"
|
|
|
|
# "signald"
|
|
|
|
# ];
|
|
|
|
# networks = [ "webserver" ];
|
|
|
|
# volumes = [
|
|
|
|
# "/etc/container-matrix/signal:/data"
|
|
|
|
# "/etc/container-matrix/signald:/signald"
|
|
|
|
# ];
|
|
|
|
# labels = {
|
|
|
|
# "com.centurylinklabs.watchtower.enable" = "true";
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
#
|
|
|
|
# matrix-whatsapp = {
|
|
|
|
# service = {
|
|
|
|
# image = "dock.mau.dev/mautrix/whatsapp:latest";
|
|
|
|
# container_name = "mautrix-whatsapp";
|
|
|
|
# restart = "unless-stopped";
|
|
|
|
# depends_on = [
|
|
|
|
# "ipv6nat"
|
|
|
|
# "synapse"
|
|
|
|
# ];
|
|
|
|
# networks = [ "webserver" ];
|
|
|
|
# volumes = [
|
|
|
|
# "/etc/container-matrix/whatsapp:/data"
|
|
|
|
# ];
|
|
|
|
# labels = {
|
|
|
|
# "com.centurylinklabs.watchtower.enable" = "true";
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
2022-07-30 22:36:06 +00:00
|
|
|
};
|
|
|
|
};
|
2022-07-31 10:34:06 +00:00
|
|
|
} // custom-config
|