This commit is contained in:
Michael Pilosov 2021-12-09 13:52:12 -07:00 committed by Michael Pilosov
parent 74529deaef
commit 83256fa5d7
3 changed files with 4 additions and 3 deletions

View File

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

View File

@ -34,8 +34,8 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock:rw" - "/var/run/docker.sock:/var/run/docker.sock:rw"
# Bind Docker volume on host for JupyterHub database and cookie secrets # Bind Docker volume on host for JupyterHub database and cookie secrets
- "data:/data" - "data:/data"
- "./jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py" - ./jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py
- "./userlist:/srv/jupyterhub/userlist" - ./userlist:/srv/jupyterhub/userlist
# - "/tmp/.X11-unix:/tmp/.X11-unix" # - "/tmp/.X11-unix:/tmp/.X11-unix"
ports: ports:
- "${PORT_NUM}:8000" - "${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 @docker volume inspect $(HUB_NAME)-db-data >/dev/null 2>&1 || docker volume create --name $(HUB_NAME)-db-data
secrets/postgres.env: secrets/postgres.env:
@mkdir -p secrets/
@echo "Generating postgres password in $@" @echo "Generating postgres password in $@"
@echo "POSTGRES_PASSWORD=$(shell openssl rand -hex 32)" > $@ @echo "POSTGRES_PASSWORD=$(shell openssl rand -hex 32)" > $@
secrets/oauth.env: secrets/oauth.env:
@mkdir -p secrets/
@echo "Generating hash key in $@" @echo "Generating hash key in $@"
@echo "HASH_SECRET_KEY=$(shell openssl rand -hex 32)" > $@ @echo "HASH_SECRET_KEY=$(shell openssl rand -hex 32)" > $@