isengard: added mindwtr container

This commit is contained in:
Victor Ișan 2026-02-27 22:22:58 +01:00
parent 3b6c8e83ba
commit 658420779c
2 changed files with 57 additions and 3 deletions

View File

@ -0,0 +1,54 @@
{ config, ... }:
let
workDir = "/srv/containers/mindwtr";
in
{
systemd.tmpfiles.rules = [
"d ${workDir} 2775 root admin"
];
virtualisation.oci-containers.containers.mindwtr-app = {
autoStart = true;
image = "ghcr.io/dongdongbh/mindwtr-app:latest";
ports = [
"10001:5173/tcp"
];
};
virtualisation.oci-containers.containers.mindwtr-cloud = {
autoStart = true;
image = "ghcr.io/dongdongbh/mindwtr-cloud:latest";
ports = [
"10002:8787/tcp"
];
volumes = [
"${workDir}:/app/cloud_data"
];
extraOptions = [
"--health-cmd=curl -f http://localhost:8787/health || echo 'Health check failed'"
"--health-interval=1m30s"
"--health-retries=3"
"--health-start-period=30s"
"--health-timeout=10s"
];
environmentFiles = [
];
# For directory permissions
environment = {
UID = "1000";
GID = "10000";
};
};
}

View File

@ -1,11 +1,11 @@
{ config, ... }:
let
ntfyDir = "/srv/containers/ntfy";
workDir = "/srv/containers/ntfy";
in
{
systemd.tmpfiles.rules = [
"d ${ntfyDir} 2775 root admin"
"d ${workDir} 2775 root admin"
];
virtualisation.oci-containers.containers.ntfy = {
@ -19,7 +19,7 @@ in
];
volumes = [
"${ntfyDir}:/var/lib/ntfy"
"${workDir}:/var/lib/ntfy"
];
cmd = [ "serve" ];