updated to have certificates mounted externally

This commit is contained in:
stellarshenson
2025-08-10 04:31:59 +02:00
parent 254d5670d6
commit a5ffcdb1f8
4 changed files with 4 additions and 2 deletions

View File

@@ -1,2 +1,5 @@
this is where certificates for jupyterlab and jupyterhub should be uploaded
this directory will be mounted under /mnt/certs
- server.key - private key
- server.crt - certificate

View File

@@ -50,9 +50,9 @@ services:
container_name: ${COMPOSE_PROJECT_NAME:-stellars-jupyterhub-ds}-jupyterhub
volumes:
- ./config/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro # config file (read only)
- ./certs:/mnt/certs # SSL certificates
- /var/run/docker.sock:/var/run/docker.sock:rw # docker socket to use spawner
- jupyterhub_data:/data # database and cookie secrets
- jupyterhub_certs:/mnt/certs # SSL certificates
- jupyterhub_shared:/mnt/shared # shared volume across environments
- /var/run/docker.sock:/var/run/docker.sock:ro # for nvidia autodetection
environment:

View File

@@ -33,7 +33,6 @@ EOF
## copy resources
COPY --chmod=755 ./conf/bin/*.sh ./conf/bin/*.py /
COPY --chmod=755 ./conf/bin/start-platform.d /start-platform.d
COPY ./templates/certs /mnt/certs
## install dockerspawner, nativeauthenticator
RUN pip install -U --no-cache-dir \