31 lines
437 B
Nix
31 lines
437 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
virtualisation.oci-containers.containers.portainer = {
|
|
image = "portainer/portainer-ce:latest";
|
|
autoStart = true;
|
|
|
|
dependsOn = [];
|
|
|
|
ports = [
|
|
# "8000:8000"
|
|
# "9443:9443"
|
|
];
|
|
|
|
volumes = [
|
|
"portainer_config:/data"
|
|
|
|
"/var/run/docker.sock:/var/run/docker.sock"
|
|
];
|
|
|
|
environment = {};
|
|
|
|
extraOptions = [
|
|
"--net=behind-nginx"
|
|
];
|
|
};
|
|
}
|