-
Notifications
You must be signed in to change notification settings - Fork 112
/
docker-compose.yml
42 lines (38 loc) · 984 Bytes
/
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
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
- HOST
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:${HOST}"
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
volumes:
jupyterhub_data: