nextcloud: add nat to container
This commit is contained in:
parent
d66e28d96c
commit
006ca4b249
1 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
{ pkgs, ... }: {
|
||||
|
||||
|
||||
# setup nextcloud in a container
|
||||
containers.nextcloud = {
|
||||
bindMounts = {
|
||||
|
@ -44,6 +45,14 @@
|
|||
};
|
||||
};
|
||||
|
||||
# give containers internet access
|
||||
networking.nat.enable = true;
|
||||
networking.nat.internalInterfaces = [ "ve-nextcloud" ];
|
||||
networking.nat.externalInterface = "eth0";
|
||||
|
||||
# don't let networkmanager manger container network
|
||||
networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];
|
||||
|
||||
# host nginx setup
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue