1
Files
flake-homelab/ServeNix/services/portainer.nix
2023-09-01 11:40:07 +02:00

30 lines
478 B
Nix

{
config,
lib,
pkgs,
...
}: {
virtualisation.oci-containers.containers.portainer = {
image = "portainer/portainer-ce:latest";
autoStart = true;
dependsOn = [];
ports = [
"8000:8000"
"9443:9443"
];
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
"portainer_config:/data"
];
environment = {};
extraOptions = [
# "--restart=always" # Conflicts with NixOS' default of using --rm
];
};
}