-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (73 loc) · 1.92 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3'
services:
zk:
image: zookeeper:3.4
networks:
- ucrspawner
ports:
- 2181:2181
mesos-master:
image: dtaniwaki/mesos-master:1.4.0-2.0.1
command: mesos-master --registry=in_memory --port=5050 --zk=zk://zk:2181/mesos --log_dir=/var/log/mesos --logging_level=WARNING
networks:
- ucrspawner
ports:
- 5050:5050
expose:
- 5050
depends_on:
- zk
mesos-slave:
image: dtaniwaki/mesos-slave:1.4.0-2.0.1
command: mesos-slave --port=5051 --master=zk://zk:2181/mesos --work_dir=/var/lib/mesos --log_dir=/var/log/mesos --hostname=mesos-slave --isolation=filesystem/linux,docker/runtime --image_providers=docker --logging_level=WARNING --docker_store_dir=/docker-store --image_provisioner_backend=copy
privileged: true
networks:
- ucrspawner
ports:
- 5051:5051
expose:
- 5051
volumes:
- mesos-docker-store:/docker-store
depends_on:
- mesos-master
marathon:
image: dtaniwaki/marathon:1.5.1
command: --master zk://zk:2181/mesos --zk zk://zk:2181/marathon --logging_level=WARN --task_launch_confirm_timeout=600000
networks:
- ucrspawner
ports:
- 8080:8080
expose:
- 8080
depends_on:
- mesos-master
hub:
build:
context: '.'
args:
- JUPYTERHUB_VERSION=0.8.1
command: bash /opt/wait.sh jupyterhub --ip 0.0.0.0 --port 8000 --debug
user: jupyterhub # The UID is the same as anonymous user in mesos-slave
environment:
- JUPYTERHUB_API_IP=hub
- JUPYTERHUB_API_PORT=8081
- NOTEBOOK_IMAGE=jupyterhub/singleuser:0.8.1
- MARATHON_HOST=http://marathon:8080
- MESOS_USER=anonymous
networks:
- ucrspawner
ports:
- 8000:8000
- 8081:8081
expose:
- 8000
- 8081
volumes:
- ./wait.sh:/opt/wait.sh
depends_on:
- marathon
networks:
ucrspawner:
volumes:
mesos-docker-store: