add dockge

This commit is contained in:
Satria 2026-03-02 15:42:41 +07:00
commit 81a70b3bb7
4 changed files with 36 additions and 6 deletions

View file

@ -0,0 +1,27 @@
{ ... }: let
stacks-dir = "/opt/stacks";
in {
virtualisation = {
oci-containers.backend = "docker";
docker = {
enable = true;
autoPrune.enable = true;
};
};
virtualisation.oci-containers.containers."dockge" = {
image = "louislam/dockge:latest";
environment = {
"DOCKGE_STACKS_DIR" = stacks-dir;
};
volumes = [
"${stacks-dir}:${stacks-dir}:rw"
"/root/dockge:/app/data:rw"
"/var/run/docker.sock:/var/run/docker.sock:rw"
];
ports = [
"127.0.0.1:5001:5001/tcp"
];
log-driver = "journald";
};
}