2022-11-27 18:51:19 +00:00
|
|
|
let
|
2022-11-30 10:48:02 +00:00
|
|
|
secret = import ../../secret/container/matrix;
|
|
|
|
custom-config = import ./config.nix { inherit secret; };
|
2022-11-27 18:51:19 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
virtualisation.arion.projects.matrix.settings = {
|
|
|
|
services = {
|
|
|
|
matrix-telegram = {
|
|
|
|
service = {
|
|
|
|
image = "dock.mau.dev/mautrix/telegram:latest";
|
|
|
|
container_name = "mautrix-telegram";
|
|
|
|
restart = "unless-stopped";
|
|
|
|
ports = [ "29317:29317" ];
|
|
|
|
volumes = [
|
|
|
|
"/etc/container-matrix/telegram:/data"
|
|
|
|
];
|
|
|
|
labels = {
|
|
|
|
"com.centurylinklabs.watchtower.enable" = "true";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-11-27 19:50:53 +00:00
|
|
|
signald = {
|
|
|
|
service = {
|
|
|
|
image = "signald/signald:latest";
|
|
|
|
container_name = "signald";
|
|
|
|
restart = "unless-stopped";
|
|
|
|
volumes = [
|
|
|
|
"/etc/container-matrix/signald:/signald"
|
|
|
|
];
|
2022-11-30 10:48:02 +00:00
|
|
|
environment = {
|
|
|
|
SIGNALD_DATABASE = secret.container.matrix.signald.environment.database;
|
|
|
|
};
|
2022-11-27 19:50:53 +00:00
|
|
|
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 = [ "signald" ];
|
2022-11-27 19:55:46 +00:00
|
|
|
ports = [ "29328:29328" ];
|
2022-11-27 19:50:53 +00:00
|
|
|
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";
|
2022-11-27 19:55:46 +00:00
|
|
|
ports = [ "29318:29318" ];
|
2022-11-27 19:50:53 +00:00
|
|
|
volumes = [
|
|
|
|
"/etc/container-matrix/whatsapp:/data"
|
|
|
|
];
|
|
|
|
labels = {
|
|
|
|
"com.centurylinklabs.watchtower.enable" = "true";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-11-27 18:51:19 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
} // custom-config
|