From 6404a200e6e06f941addbdd9d14a978c36e0e0dd Mon Sep 17 00:00:00 2001 From: James Eversole Date: Sat, 1 Jul 2023 20:43:20 -0500 Subject: [PATCH] All containers listen on host NIC --- flake.nix | 2 +- nix/application/containers.nix | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index bf7d2dd..7e971c0 100644 --- a/flake.nix +++ b/flake.nix @@ -16,7 +16,7 @@ parts.url = "github:hercules-ci/flake-parts"; }; - outputs = { self, agenix, nix-serve-ng, nixpkgs, parts, ... }@inputs: + outputs = inputs@{ self, agenix, nix-serve-ng, nixpkgs, parts, ... }: parts.lib.mkFlake { inherit inputs; } { systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; diff --git a/nix/application/containers.nix b/nix/application/containers.nix index 286573f..d205109 100644 --- a/nix/application/containers.nix +++ b/nix/application/containers.nix @@ -25,7 +25,7 @@ jellyfin = { image = "linuxserver/jellyfin"; - ports = [ "127.0.0.1:8096:8096" "127.0.0.1:8920:8920" ]; + ports = [ "8096:8096" "8920:8920" ]; volumes = [ "/home/sezycei/srv/containerdata/jellyfin/config:/config" "/home/torrent/data/completed:/data/unsorted" @@ -44,18 +44,18 @@ murmur = { image = "goofball222/murmur"; - ports = [ "127.0.0.1:64738:64738" "127.0.0.1:64738:64738/udp" ]; + ports = [ "64738:64738" "64738:64738/udp" ]; volumes = [ - "/home/sezycei/srv/containerdata/registry/registry/data:/var/lib/registry" - "/home/sezycei/srv/containerdata/registry/registry/certs:/certs" - "/home/sezycei/srv/containerdata/registry/registry/auth:/auth" + "/home/sezycei/srv/containerdata/murmur/murmur/config:/opt/murmur/config" + "/home/sezycei/srv/containerdata/murmur/murmur/data:/opt/murmur/data" + "/home/sezycei/srv/containerdata/murmur/murmur/log:/opt/murmur/log" ]; environment = { }; }; purr = { image = "docker.matri.cx/purr"; - ports = [ "127.0.0.1:5195:3000" ]; + ports = [ "5195:3000" ]; volumes = [ "/home/sezycei/dev/purr/data/Purr.sqlite:/app/data/Purr.sqlite" "/home/sezycei/dev/purr/config.dhall:/app/config.dhall" @@ -65,7 +65,7 @@ registry = { image = "registry:2"; - ports = [ "127.0.0.1:3001:5000" ]; + ports = [ "3001:5000" ]; volumes = [ "/home/sezycei/srv/containerdata/registry/registry/data:/var/lib/registry" "/home/sezycei/srv/containerdata/registry/registry/certs:/certs" @@ -76,7 +76,7 @@ transmission = { image = "haugene/transmission-openvpn"; - ports = [ "127.0.0.1:9091:9091" ]; + ports = [ "9091:9091" ]; volumes = [ "/home/sezycei/srv/scripts/transmission/settings.json:/etc/transmission-daemon/settings.json" "/etc/localtime:/etc/localtime:ro"