1

Services/Portainer: Update to v2.31.3

This commit is contained in:
2025-07-11 21:49:06 +02:00
parent 5cbd2d3a88
commit e54249d86d
2 changed files with 68 additions and 57 deletions

View File

@ -3,36 +3,42 @@
lib, lib,
pkgs, pkgs,
... ...
}: { }: let
virtualisation.oci-containers.containers.portainer-agent = { # Match this with the portainer-ce version
image = "portainer/agent:latest"; portainerVersion = "2.31.3";
autoStart = true; in {
# Use the agent to connect clients to a main portainer instance
virtualisation.oci-containers.containers = {
portainer-agent = {
image = "portainer/agent:${portainerVersion}";
autoStart = true;
login = { login = {
# Uses DockerHub by default # Uses DockerHub by default
# registry = ""; # registry = "";
# DockerHub Credentials # DockerHub Credentials
username = "christoph.urlacher@protonmail.com"; username = "christoph.urlacher@protonmail.com";
passwordFile = "${config.sops.secrets.docker-password.path}"; passwordFile = "${config.sops.secrets.docker-password.path}";
};
dependsOn = [];
ports = [
"9001:9001"
];
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
"/var/lib/docker/volumes:/var/lib/docker/volumes"
];
environment = {};
extraOptions = [
# This container needs to be accessible from another machine inside the LAN
# "--net=behind-nginx"
];
}; };
dependsOn = [];
ports = [
"9001:9001"
];
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
"/var/lib/docker/volumes:/var/lib/docker/volumes"
];
environment = {};
extraOptions = [
# This container needs to be accessible from another machine inside the LAN
# "--net=behind-nginx"
];
}; };
} }

View File

@ -3,37 +3,42 @@
lib, lib,
pkgs, pkgs,
... ...
}: { }: let
virtualisation.oci-containers.containers.portainer = { # Match this with the portainer agent version
image = "portainer/portainer-ce:latest"; portainerVersion = "2.31.3";
autoStart = true; in {
virtualisation.oci-containers.containers = {
portainer = {
image = "portainer/portainer-ce:${portainerVersion}";
autoStart = true;
login = { login = {
# Uses DockerHub by default # Uses DockerHub by default
# registry = ""; # registry = "";
# DockerHub Credentials # DockerHub Credentials
username = "christoph.urlacher@protonmail.com"; username = "christoph.urlacher@protonmail.com";
passwordFile = "${config.sops.secrets.docker-password.path}"; passwordFile = "${config.sops.secrets.docker-password.path}";
};
dependsOn = [];
ports = [
# "8000:8000"
# "9443:9443"
];
volumes = [
"portainer_config:/data"
"/var/run/docker.sock:/var/run/docker.sock"
];
environment = {};
extraOptions = [
"--net=behind-nginx"
];
}; };
dependsOn = [];
ports = [
# "8000:8000"
# "9443:9443"
];
volumes = [
"portainer_config:/data"
"/var/run/docker.sock:/var/run/docker.sock"
];
environment = {};
extraOptions = [
"--net=behind-nginx"
];
}; };
} }