2024-03-05 20:59:17 +01:00
|
|
|
{pkgs, ...}: {
|
|
|
|
project.name = "push";
|
|
|
|
|
|
|
|
networks.dmz = {
|
|
|
|
name = "dmz";
|
|
|
|
external = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
ntfy.service = {
|
2024-03-31 22:05:29 +02:00
|
|
|
image = "binwiederhier/ntfy:v2.10.0";
|
2024-03-05 20:59:17 +01:00
|
|
|
container_name = "ntfy";
|
|
|
|
user = "1000:1000";
|
|
|
|
command = "serve";
|
|
|
|
useHostStore = true;
|
|
|
|
labels = {
|
|
|
|
"traefik.enable" = "true";
|
|
|
|
"traefik.http.routers.ntfy.entrypoints" = "websecure";
|
|
|
|
"traefik.http.routers.ntfy.rule" = "Host(`push.ghoscht.com`)";
|
|
|
|
"traefik.http.routers.ntfy.tls" = "true";
|
|
|
|
"traefik.http.routers.ntfy.tls.certresolver" = "letsencrypt";
|
|
|
|
};
|
|
|
|
volumes = [
|
|
|
|
"/home/ghoscht/.docker/push/ntfy_data/server.yml:/etc/ntfy/server.yml"
|
|
|
|
];
|
|
|
|
environment = {
|
|
|
|
TZ = "Europe/Berlin";
|
|
|
|
};
|
|
|
|
restart = "always";
|
|
|
|
networks = [
|
|
|
|
"dmz"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|