From 780ca5ec6a3fc30f6ee26368c51cc4aa4ac3ec02 Mon Sep 17 00:00:00 2001 From: hotwa Date: Mon, 27 May 2024 09:06:26 +0800 Subject: [PATCH] add 8080 port and use relavent dir --- .gitignore | 1 + docker-compose.yml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8e2defa..c105ea7 100755 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /docker-stacks +jupyterhub-data *.tar \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 1072dd7..2b547d0 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: args: JUPYTERHUB_VERSION: latest restart: always - image: quay.io/hotwa/jupyterlab:latest + image: quay.io/hotwa/jupyterhub:latest container_name: jupyterhub networks: - jupyterhub-network @@ -23,9 +23,10 @@ services: # within the container - "/var/run/docker.sock:/var/run/docker.sock:rw" # Bind Docker volume on host for JupyterHub database and cookie secrets - - "jupyterhub-data:/data" + - "./jupyterhub-data:/data" ports: - "8000:8000" + - "8080:8080" environment: # This username will be a JupyterHub admin JUPYTERHUB_ADMIN: admin