forked from kylrth/GPU-Jupyterhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (35 loc) · 1.05 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: "3.9"
services:
jupyter:
image: jupyterhub:latest
container_name: jupyterhub # necessary so spawned containers can reach hub
restart: unless-stopped
runtime: nvidia
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
# volume for Jupyter Hub database and cookie secrets
- "jupyter-data:/data"
# configs
- "./data/configs/:/srv/jupyterhub/"
networks:
- default
- jupyter-network
ports:
- 8080:80
environment:
JUPYTER_ENABLE_LAB: "yes"
# JupyterHub will spawn this Notebook image for users
DOCKER_NOTEBOOK_IMAGE: hub-deep-learning-notebook-gpu
# specify how GPUs are exposed to containers
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: compute,utility
GITHUB_CLIENT_ID: changeme
GITHUB_CLIENT_SECRET: changeme
command: >
jupyterhub -f /srv/jupyterhub/jupyterhub_config.py
networks:
default:
jupyter-network:
name: jupyter-network # specified so that spawned containers can join
volumes:
jupyter-data: