Files
Olympus/system/services/docker/portainer/default.nix
2026-01-19 09:10:54 -06:00

34 lines
847 B
Nix

{ config, lib, ... }: {
options.sysconfig.docker.portainer.enable = with lib; mkOption {
type = with types; bool;
default = true;
};
config = lib.mkIf (config.sysconfig.docker.portainer.enable && config.sysconfig.docker.enable) {
virtualisation.oci-containers.containers.portainer = {
image = "portainer/portainer-ce:latest";
# unstable, waiting for 26.05
#pull = "newer";
hostname = "portainer.esotericbytes.com";
/*networks = [
"docker-main"
];*/
ports = [
"127.0.0.1:8000:8000"
"127.0.0.1:9000:9000"
];
volumes = [
"vol_portainer:/data"
"/run/docker.sock:/var/run/docker.sock"
];
};
};
}