forked from defeo/jupyterhub-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
46 lines (42 loc) · 1.28 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
version: '3.9'
services:
proxy:
build: ./app/proxy
container_name: proxy
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- ./app/proxy/traefik.yml:/etc/traefik/traefik.yml
- ./app/proxy/tls.yml:/etc/traefik/tls.yml
- ./app/proxy/certs/:/etc/certs/
jupyterhub:
build: ./app/jupyterhub
container_name: jupyterhub
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
- "jupyterhub-data:/data:rw"
- "./app/jupyterhub/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro"
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: ./app/notebook
image: notebook_img
container_name: notebook-throwaway
network_mode: none
command: echo
volumes:
jupyterhub-data: