container: changed mindwtr
This commit is contained in:
parent
348f8b107d
commit
ece3fd6cee
@ -25,7 +25,7 @@
|
||||
nixosConfigurations = {
|
||||
isengard = lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit release myUser disko agenix; };
|
||||
specialArgs = { inherit release myUser disko agenix system; };
|
||||
modules = [
|
||||
./modules/base.nix
|
||||
./hosts/isengard.nix
|
||||
|
||||
@ -1,13 +1,6 @@
|
||||
{ config, ... }:
|
||||
|
||||
let
|
||||
workDir = "/srv/containers/mindwtr";
|
||||
in
|
||||
{
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${workDir} 2775 root admin"
|
||||
];
|
||||
|
||||
virtualisation.oci-containers.containers.mindwtr-app = {
|
||||
|
||||
autoStart = true;
|
||||
@ -15,40 +8,7 @@ in
|
||||
image = "ghcr.io/dongdongbh/mindwtr-app:latest";
|
||||
|
||||
ports = [
|
||||
"10001:5173/tcp"
|
||||
"0.0.0.0: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 = [
|
||||
config.age.secrets.mindwtr.path
|
||||
];
|
||||
|
||||
# For directory permissions
|
||||
environment = {
|
||||
UID = "1000";
|
||||
GID = "10000";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user