This commit is contained in:
Michael Pilosov 2021-12-09 13:52:12 -07:00
parent 664174118a
commit bbabdb47b9
3 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,5 @@ README.md
setup.sh
show_login.sh
groups.sh
jupyterhub_config.py
LICENSE
CONTRIBUTING.md

View File

@ -34,8 +34,8 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
# Bind Docker volume on host for JupyterHub database and cookie secrets
- "data:/data"
- "./jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py"
- "./userlist:/srv/jupyterhub/userlist"
- ./jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py
- ./userlist:/srv/jupyterhub/userlist
# - "/tmp/.X11-unix:/tmp/.X11-unix"
ports:
- "${PORT_NUM}:8000"

View File

@ -13,10 +13,12 @@ volumes:
@docker volume inspect $(HUB_NAME)-db-data >/dev/null 2>&1 || docker volume create --name $(HUB_NAME)-db-data
secrets/postgres.env:
@mkdir -p secrets/
@echo "Generating postgres password in $@"
@echo "POSTGRES_PASSWORD=$(shell openssl rand -hex 32)" > $@
secrets/oauth.env:
@mkdir -p secrets/
@echo "Generating hash key in $@"
@echo "HASH_SECRET_KEY=$(shell openssl rand -hex 32)" > $@