-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.jupyter.yml
More file actions
32 lines (29 loc) · 968 Bytes
/
docker-compose.jupyter.yml
File metadata and controls
32 lines (29 loc) · 968 Bytes
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
services:
jupyterhub:
build:
context: jupyterhub
dockerfile: Dockerfile.jupyterhub
args:
JUPYTERHUB_VERSION: 4
restart: always
networks:
- clowder2
volumes:
# The JupyterHub configuration file
- ./jupyterhub/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro
# Bind Docker socket on the hostso 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
env_file:
- jupyterhub/.env
labels:
- "traefik.enable=true"
- "traefik.http.routers.jupyterhub.rule=PathPrefix(`/jupyterhub`)"
- "traefik.http.services.jupyterhub.loadbalancer.server.port=8000"
command: jupyterhub -f /srv/jupyterhub/jupyterhub_config.py
depends_on:
- keycloak
volumes:
jupyterhub_data: