From e3e009ffb2506aae243fe5910ec15c18e6274c57 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Mon, 2 Feb 2026 11:24:25 -0600 Subject: [PATCH] youtarr use same network --- hosts/h001/mods/youtarr.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/h001/mods/youtarr.nix b/hosts/h001/mods/youtarr.nix index efdef45a..45ff551a 100644 --- a/hosts/h001/mods/youtarr.nix +++ b/hosts/h001/mods/youtarr.nix @@ -17,9 +17,7 @@ in virtualisation.oci-containers.containers = { "${name}" = { image = "dialmaster/youtarr:latest"; - ports = [ - "${toString port}:${toString port}" - ]; + # No ports here - using shared network from DB container volumes = [ "${hostDataDir}/config:/config" "${mediaDir}:/downloads" @@ -33,12 +31,14 @@ in DB_PASSWORD = "123qweasd"; DB_NAME = name; }; + extraOptions = [ "--network=container:${name}-db" ]; dependsOn = [ "${name}-db" ]; }; "${name}-db" = { image = "mariadb:10.3"; ports = [ + "${toString port}:${toString port}" "${toString dbPort}:${toString dbPort}" ]; volumes = [