forked from defeo/jupyterhub-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (46 loc) · 1.24 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3'
services:
jupyterhub:
build: jupyterhub
image: jupyterhub_img
container_name: jupyterhub
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- jupyterhub_data:/srv/jupyterhub
environment:
DOCKER_JUPYTER_CONTAINER: jupyterlab_img
DOCKER_NETWORK_NAME: ${COMPOSE_PROJECT_NAME}_default
HUB_IP: jupyterhub
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:jupyter.ens.uvsq.fr"
restart: on-failure
jupyterlab:
build: jupyterlab
image: jupyterlab_img
container_name: jupyterlab-throaway
network_mode: none
command: echo
reverse-proxy:
image: traefik
container_name: reverse-proxy
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- ./reverse-proxy/traefik.toml:/etc/traefik/traefik.toml
- /etc/certs:/etc/certs
- /var/run/docker.sock:/var/run/docker.sock
restart: on-failure
oauth2_server:
image: defeo/cas2oauth2bridge
container_name: c2o2b
volumes:
- ./oauth2/config.js:/home/node/config.js
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:jupyter.ens.uvsq.fr;PathPrefixStrip:/c2o2b/"
restart: on-failure
volumes:
jupyterhub_data: