nix-config/hosts/franz/arion/signal/arion-compose.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

2024-03-07 16:47:08 +01:00
{pkgs, ...}: {
project.name = "signal";
networks.dmz = {
name = "dmz";
external = true;
};
services = {
mollysocket.service = {
2024-03-31 22:05:29 +02:00
image = "ghcr.io/mollyim/mollysocket:1.3.0";
2024-03-07 16:47:08 +01:00
container_name = "mollysocket";
useHostStore = true;
ports = [
"8020:8020"
];
command = "server";
working_dir = "/data";
labels = {
"traefik.enable" = "true";
"traefik.http.routers.mollysocket.rule" = "Host(`signal.ghoscht.com`)";
"traefik.http.routers.mollysocket.entrypoints" = "websecure";
"traefik.http.services.mollysocket.loadbalancer.server.port" = "8020";
"traefik.http.routers.mollysocket.tls" = "true";
"traefik.http.routers.mollysocket.tls.certresolver" = "letsencrypt";
};
environment = {
MOLLY_DB = "/data/mollysocket.db";
2024-03-17 15:18:23 +01:00
MOLLY_ALLOWED_ENDPOINTS = "[\"https://push.ghoscht.com\",\"*\"]";
MOLLY_ALLOWED_UUIDS = "[\"*\"]";
2024-03-07 16:47:08 +01:00
MOLLY_HOST = "0.0.0.0";
MOLLY_PORT = 8020;
RUST_LOG = "info";
};
restart = "always";
networks = [
"dmz"
];
};
};
}