Don't need internal network anymore...

This commit is contained in:
niten 2024-01-20 23:08:37 -08:00
parent a5eb2353d1
commit dc8b3fed96
1 changed files with 2 additions and 5 deletions

View File

@ -7,10 +7,7 @@ let
lemmyImage = { ... }: lemmyImage = { ... }:
{ pkgs, ... }: { { pkgs, ... }: {
project.name = "lemmy"; project.name = "lemmy";
networks = { networks = { external_network.internal = false; };
internal_network.internal = true;
external_network.internal = false;
};
docker-compose.volumes = { docker-compose.volumes = {
postgres-data = { }; postgres-data = { };
@ -27,7 +24,7 @@ let
"${cfg.admin-password-file}:${cfg.admin-password-file}" "${cfg.admin-password-file}:${cfg.admin-password-file}"
]; ];
ports = [ "${toString cfg.port}:80" ]; ports = [ "${toString cfg.port}:80" ];
networks = [ "internal_network" "internal_network" ]; networks = [ "external_network" ];
}; };
nixos = { nixos = {
useSystemd = true; useSystemd = true;