Spaces:
Runtime error
Runtime error
| # Copyright (c) Jupyter Development Team. | |
| # Distributed under the terms of the Modified BSD License. | |
| # JupyterHub docker compose configuration file | |
| version: "3" | |
| services: | |
| hub: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| args: | |
| JUPYTERHUB_VERSION: latest | |
| restart: always | |
| image: jupyterhub | |
| container_name: jupyterhub | |
| networks: | |
| - jupyterhub-network | |
| volumes: | |
| # The JupyterHub configuration file | |
| - "./jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro" | |
| # Bind Docker socket on the host so we can connect to the daemon from | |
| # 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" | |
| ports: | |
| - "8000:8000" | |
| environment: | |
| # This username will be a JupyterHub admin | |
| - DOCKER_NOTEBOOK_IMAGE=jupyter/base-notebook:latest | |
| - DOCKER_NETWORK_NAME=jupyterhub_network | |
| - DOCKER_NOTEBOOK_DIR=/home/jovyan/work | |
| volumes: | |
| jupyterhub-data: | |
| networks: | |
| jupyterhub-network: | |
| name: jupyterhub-network | |