Add portainer_agent module and configure srv01-hf for it
This commit is contained in:
parent
fadfd47e3f
commit
cfc8f986b7
3 changed files with 25 additions and 0 deletions
21
modules/portainer_agent.nix
Normal file
21
modules/portainer_agent.nix
Normal 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''
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue