isengard: added mindwtr container
This commit is contained in:
parent
3b6c8e83ba
commit
658420779c
54
modules/containers/mindwtr.nix
Normal file
54
modules/containers/mindwtr.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
@ -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" ];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user