Update containers to latest release

This commit is contained in:
♥ Minnie ♥ 2024-06-16 23:08:52 +08:00
parent 9f886e22d4
commit 5a16fd7360
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
10 changed files with 82 additions and 38 deletions

View file

@ -1,13 +1,15 @@
{ ... }:
let
port = "3000";
in
{
virtualisation.oci-containers.containers = {
adguardhome = {
autoStart = true;
image = "adguard/adguardhome";
image = "adguard/adguardhome:v0.107.51";
ports = [
"53:53" # Plain DNS
"3000:3000" # WEBGUI
"${port}:3000" # WEBGUI
];
volumes = [
"/srv/containers/adguardhome/work:/opt/adguardhome/work"
@ -33,7 +35,7 @@
services.traefik.dynamicConfigOptions.http.services = {
adguard-home.loadBalancer.servers = [
{ url = "http://127.0.0.1:3000"; }
{ url = "http://127.0.0.1:${port}"; }
];
};
}