-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (41 loc) · 1.05 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
version: "3.4"
services:
hub:
image: hub:latest
deploy:
replicas: 1
networks:
- "jupyterhub-network"
environment:
# All containers will join this network
- DOCKER_NETWORK_NAME=jupyterhub-network
- JUPYTERHUB_ADMIN=jhibba
- JUPYTERHUB_NETWORK=jupyterhub-network
- JUPYTERHUB_CONNECT_IP=hub
- JUPYTERHUB_LDAP=YOUR_LDAP_URL
- JUPYTERHUB_DOCKER_IMAGES={"Spark":"jupyter/all-spark-notebook:latest", "Tensorflow":"jupyter/tensorflow-notebook:latest"}
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
ports:
- target: 8888
published: 8888
protocol: tcp
mode: host
- target: 443
published: 443
protocol: tcp
mode: host
- target: 8000
published: 8008
protocol: tcp
mode: host
configs:
- source: jupyterhub-config
target: /srv/jupyterhub/jupyterhub_config.py
command: "jupyterhub"
configs:
jupyterhub-config:
external: true
networks:
jupyterhub-network:
external: true