fix networking
This commit is contained in:
parent
2b9c3b7b4c
commit
4999b71c94
|
@ -111,8 +111,20 @@
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [ 80 443 32400 32372 ];
|
allowedTCPPorts = [
|
||||||
allowedUDPPorts = [ 80 443 32400 32372 ];
|
53 # pihole-FTL (DNS)
|
||||||
|
80 # traefik (HTTP)
|
||||||
|
443 # traefik (HTTPS)
|
||||||
|
32400 # plex
|
||||||
|
32372 # qbittorrent
|
||||||
|
];
|
||||||
|
allowedUDPPorts = [
|
||||||
|
53 # pihole-FTL (DNS)
|
||||||
|
80 # traefik (HTTP)
|
||||||
|
443 # traefik (HTTPS)
|
||||||
|
32400 # plex
|
||||||
|
32372 # qbittorrent
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
"/srv/data:/srv/data:ro"
|
"/srv/data:/srv/data:ro"
|
||||||
"/var/run/docker.sock:/var/run/docker.sock" # pass local proxy
|
"/var/run/docker.sock:/var/run/docker.sock" # pass local proxy
|
||||||
];
|
];
|
||||||
ports = [ "3000:3000" ];
|
|
||||||
extraOptions = ["--network=host"];
|
extraOptions = ["--network=host"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
"/srv/containers/pihole/secrets:/secrets"
|
"/srv/containers/pihole/secrets:/secrets"
|
||||||
];
|
];
|
||||||
ports = [
|
ports = [
|
||||||
"53:53/tcp"
|
"192.168.1.100:53:53/tcp" # pihole-FTL (DNS)
|
||||||
"53:53/udp"
|
"192.168.1.100:53:53/udp" # pihole-FTL (DNS)
|
||||||
"8181:80/tcp"
|
"192.168.1.100:8181:80/tcp" # lighttpd (HTTP)
|
||||||
];
|
];
|
||||||
environment = {
|
environment = {
|
||||||
WEBPASSWORD_FILE = "/secrets/admin-password";
|
WEBPASSWORD_FILE = "/secrets/admin-password";
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
"/srv/containers/plex:/config"
|
"/srv/containers/plex:/config"
|
||||||
"/srv/data/media:/data/media:ro"
|
"/srv/data/media:/data/media:ro"
|
||||||
];
|
];
|
||||||
ports = [ "32400:32400" ];
|
|
||||||
extraOptions = ["--network=host"];
|
extraOptions = ["--network=host"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,5 +10,6 @@
|
||||||
"/srv/data:/data"
|
"/srv/data:/data"
|
||||||
];
|
];
|
||||||
ports = [ "9696:9696" ];
|
ports = [ "9696:9696" ];
|
||||||
|
extraOptions = ["--network=media-stack"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,5 +13,6 @@
|
||||||
"8383:8080"
|
"8383:8080"
|
||||||
"32372:32372"
|
"32372:32372"
|
||||||
];
|
];
|
||||||
|
extraOptions = ["--network=media-stack"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,5 +10,6 @@
|
||||||
"/srv/data:/data"
|
"/srv/data:/data"
|
||||||
];
|
];
|
||||||
ports = [ "7878:7878" ];
|
ports = [ "7878:7878" ];
|
||||||
|
extraOptions = ["--network=media-stack"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,5 +8,6 @@
|
||||||
volumes = [
|
volumes = [
|
||||||
"/srv/containers/recyclarr:/config"
|
"/srv/containers/recyclarr:/config"
|
||||||
];
|
];
|
||||||
|
extraOptions = ["--network=media-stack"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,5 +10,6 @@
|
||||||
"/srv/data:/data"
|
"/srv/data:/data"
|
||||||
];
|
];
|
||||||
ports = [ "8989:8989" ];
|
ports = [ "8989:8989" ];
|
||||||
|
extraOptions = ["--network=media-stack"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,11 +11,6 @@
|
||||||
"/srv/containers/traefik/letsencrypt:/letsencrypt"
|
"/srv/containers/traefik/letsencrypt:/letsencrypt"
|
||||||
"/srv/containers/traefik/secrets:/secrets"
|
"/srv/containers/traefik/secrets:/secrets"
|
||||||
];
|
];
|
||||||
ports = [
|
|
||||||
"80:80"
|
|
||||||
"443:443"
|
|
||||||
"8080:8080"
|
|
||||||
];
|
|
||||||
environment = {
|
environment = {
|
||||||
CF_API_EMAIL_FILE = "/secrets/cf-api-email";
|
CF_API_EMAIL_FILE = "/secrets/cf-api-email";
|
||||||
CF_API_KEY_FILE = "/secrets/cf-api-key";
|
CF_API_KEY_FILE = "/secrets/cf-api-key";
|
||||||
|
|
Loading…
Reference in a new issue