add 8080 port and use relavent dir

This commit is contained in:
2024-05-27 09:06:26 +08:00
parent 589713716f
commit 780ca5ec6a
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/docker-stacks
jupyterhub-data
*.tar

View File

@@ -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