Skip to content

Commit

Permalink
uranus: fix oci container port binding
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Jan 3, 2025
1 parent 38db9c9 commit e333f2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hosts/uranus/jupyter-container.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
, packages
, jupyterUsers
, jupyterAdminGroup ? "uranus-owner"
, bind-ip ? "127.0.0.1"
, bind-port ? 80
, bind-ip ? "0.0.0.0"
, bind-port ? 8080
, ...
}:
let
Expand Down
3 changes: 1 addition & 2 deletions hosts/uranus/stateful-jupyter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ in
backend = "docker";
containers."jupyterlab-stateful" = {
autoStart = true;
ports = [ "8080:8080" ];
ports = [ "${registry.wgAddr4}:80:8080" ];
volumes = [
"/var/lib/jupyter-volume:/workdir"
"/var/lib/root-home:/root"
Expand All @@ -64,7 +64,6 @@ in
in
(import ./jupyter-container.nix {
inherit pkgs lib jupyterUsers packages;
bind-ip = registry.wgAddr4;
});
image = "stateful-jupyterlab";
};
Expand Down

0 comments on commit e333f2d

Please sign in to comment.