Add modules/server/containers/apps/excalidraw.nix
This commit is contained in:
35
modules/server/containers/apps/excalidraw.nix
Normal file
35
modules/server/containers/apps/excalidraw.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, containerCfg, pkgs, lib, builder, name,... }:
|
||||
let
|
||||
version = "latest";
|
||||
serverCfg = config.syscfg.server;
|
||||
in {
|
||||
runtime = {
|
||||
paths = [{
|
||||
path="${serverCfg.path.data.path}/excalidraw/";
|
||||
owner = "root:root";
|
||||
mode = "0777";
|
||||
}];
|
||||
|
||||
containers = {
|
||||
server = builder.mkContainer {
|
||||
subdomain = containerCfg.subdomain;
|
||||
image = "excalidraw/excalidraw:${version}";
|
||||
port = 80;
|
||||
tmpfs = true;
|
||||
# secret = name;
|
||||
extraEnv = {
|
||||
NODE_ENV="production";
|
||||
VITE_APP_WS_SERVER_URL="${containerCfg.subdomain}.${serverCfg.domain}";
|
||||
};
|
||||
extraLabels = {
|
||||
};
|
||||
overrides = {
|
||||
volumes = [
|
||||
"${serverCfg.path.data.path}/excalidraw:/app/data"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user