-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (56 loc) · 1.43 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
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy:0.4.0
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs
hub:
image: nginx:stable-alpine
environment:
- VIRTUAL_HOST=hub.treehouse.gi.ucsc.edu
volumes:
- ./html:/usr/share/nginx/html
nbviewer:
image: nbviewer
build:
context: .
dockerfile: Dockerfile.nbviewer
environment:
- VIRTUAL_HOST=nbviewer.treehouse.gi.ucsc.edu
volumes:
- /data/notebooks:/notebooks
command: python3 -m nbviewer --port=8080 --no-cache --localfiles=/notebooks
jupyterhub:
image: jupyterhub
build:
context: .
dockerfile: Dockerfile.jupyterhub
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py
- /data:/data
ports:
- "8000:8000"
links:
- nbviewer:nbviewer
- hub:hub
environment:
- VIRTUAL_HOST=jupyter.treehouse.gi.ucsc.edu
- COMPOSE_PROJECT_NAME
- CONFIGPROXY_AUTH_TOKEN=5879f3780c920dc76456360e23ef2421929b010af2440970f0f3e3ee6cca
- GITHUB_CLIENT_ID
- GITHUB_CLIENT_SECRET
- OAUTH_CALLBACK_URL
xena:
image: xena
build:
context: .
dockerfile: Dockerfile.xena
environment:
VIRTUAL_HOST: xena.treehouse.gi.ucsc.edu
volumes:
- /data/xena:/root/xena