diff --git a/system-config/services/containers/gitlab/default.nix b/system-config/services/containers/gitlab/default.nix index e3660aa..86642f8 100644 --- a/system-config/services/containers/gitlab/default.nix +++ b/system-config/services/containers/gitlab/default.nix @@ -18,12 +18,29 @@ "gitlab/oidc/secret" = {}; }; + services.openssh.ports = [ + 2222 + ]; + + networking.firewall.allowedTCPPorts = [ + 22 + 2222 + ]; + containers.gitlab = { autoStart = true; privateNetwork = true; hostAddress = "192.168.100.10"; localAddress = "192.168.100.16"; + + forwardPorts = [ + { + containerPort = 22; + hostPort = 22; + } + ]; + bindMounts = { "/etc/gitlab/data" = { hostPath = "/ssd1/Gitlab/data";