forked from pavlsnak/jupyterhub-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (43 loc) · 1.29 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
version: '3.9'
services:
proxy:
build: ./proxy
container_name: proxy
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- ./proxy/traefik.yml:/etc/traefik/traefik.yml
- ./proxy/tls.yml:/etc/traefik/tls.yml
- ./proxy/certs/:/etc/certs/
jupyterhub:
build: ./jupyterhub
container_name: jupyterhub
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
- "jupyterhub-data:/data:rw"
- "./jupyterhub/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro"
- "./utils:/srv/jupyterhub/utils"
environment:
- ACTIVE_SERVER_LIMIT=${ACTIVE_SERVER_LIMIT}
- ACTIVITY_RESOLUTION=${ACTIVITY_RESOLUTION}
- MEM_LIMIT=${MEM_LIMIT}
- CPU_LIMIT=${CPU_LIMIT}
- DOCKER_NOTEBOOK_IMAGE=notebook_img
- DOCKER_NETWORK_NAME=${COMPOSE_PROJECT_NAME}_default
- HOST=${HOST}
- JUPYTERHUB_IDLE_CULLER_TIMEOUT=${IDLE_CULLER_TIMEOUT}
- DEBUG=${DEBUG}
labels:
- "traefik.http.routers.jupyterhub.rule=Host(`${HOST}`)"
- "traefik.http.routers.jupyterhub.tls=true"
notebook:
build: ./notebook
image: notebook_img
container_name: notebook-throwaway
network_mode: none
command: echo
volumes:
jupyterhub-data: