Add gotify service

This commit is contained in:
Yan Lin 2025-09-08 21:32:29 +02:00
parent 5cc67b9347
commit e45d21fc9b
2 changed files with 54 additions and 1 deletions

View file

@ -61,5 +61,58 @@ in
autoStart = true; autoStart = true;
}; };
# Gotify notification server
gotify = {
image = "docker.io/gotify/server";
volumes = [
"/var/lib/containers/gotify:/app/data"
];
labels = {
"traefik.enable" = "true";
"traefik.http.routers.notify.rule" = "Host(`notify.yanlincs.com`)";
"traefik.http.routers.notify.entrypoints" = "websecure";
"traefik.http.routers.notify.tls" = "true";
"traefik.http.routers.notify.tls.certresolver" = "cloudflare";
"traefik.http.routers.notify.tls.domains[0].main" = "*.yanlincs.com";
"traefik.http.services.notify.loadbalancer.server.port" = "80";
};
extraOptions = [
"--network=podman"
"--security-opt=no-new-privileges:true"
];
autoStart = true;
};
# iGotify notification assistant
igotify = {
image = "ghcr.io/androidseb25/igotify-notification-assist:latest";
volumes = [
"/var/lib/containers/igotify:/app/data"
];
labels = {
"traefik.enable" = "true";
"traefik.http.routers.inotify.rule" = "Host(`inotify.yanlincs.com`)";
"traefik.http.routers.inotify.entrypoints" = "websecure";
"traefik.http.routers.inotify.tls" = "true";
"traefik.http.routers.inotify.tls.certresolver" = "cloudflare";
"traefik.http.routers.inotify.tls.domains[0].main" = "*.yanlincs.com";
"traefik.http.services.inotify.loadbalancer.server.port" = "8080";
};
extraOptions = [
"--network=podman"
"--security-opt=no-new-privileges:true"
];
dependsOn = [ "gotify" ];
autoStart = true;
};
}; };
} }

View file

@ -25,7 +25,7 @@
}; };
"hs" = { "hs" = {
hostname = "hs.hw.yanlincs.com"; hostname = "hs.yanlincs.com";
user = "yanlin"; user = "yanlin";
identityFile = "~/.ssh/keys/nas"; identityFile = "~/.ssh/keys/nas";
setEnv = { setEnv = {