Add portainer_agent module and configure srv01-hf for it

This commit is contained in:
JuliusFreudenberger 2025-09-18 01:11:57 +02:00
parent fadfd47e3f
commit cfc8f986b7
3 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{
...
}: {
virtualisation.oci-containers.containers = {
portainer_agent = {
image = "portainer/agent:2.33.1";
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
"/var/lib/docker/volumes:/var/lib/docker/volumes"
"/:/host"
];
environment = {
EDGE = "1";
CAP_HOST_MANAGEMENT = "1";
};
extraOptions = [
''--mount=type=volume,source=portainer_agent,target=/data,volume-driver=local''
];
};
};
}