-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
77 lines (69 loc) · 1.89 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
74
75
76
version: '3.8'
services:
scheduler:
image: phaustin/base_pangeo:aug6
depends_on: [pangeo-notebook]
hostname: dask-scheduler
ports:
- "8786:8786"
- "8787:8787"
command: ["dask-scheduler"]
networks:
- dask_net
worker1:
image: phaustin/base_pangeo:aug6
depends_on: [pangeo-notebook]
hostname: dask-worker1
command: ["dask-worker", "tcp://scheduler:8786"]
networks:
- dask_net
worker2:
image: phaustin/base_pangeo:aug6
depends_on: [pangeo-notebook]
hostname: dask-worker2
command: ["dask-worker", "tcp://scheduler:8786"]
networks:
- dask_net
webserver:
build:
context: .
dockerfile: apache_webserver/Dockerfile
image: phaustin/webserver_intropy:aug6
container_name: webserver_intropy
ports:
- "${TEXT_PORT}:80"
volumes:
- type: bind
source: ./aug2020/_build/html
target: /usr/local/apache2/htdocs
- "/var/run/docker.sock:/var/run/docker.sock"
- jupyterhub_data:/srv/jupyterhub
networks:
- dask_net
pangeo-notebook:
build:
context: ./pangeo_notebook
dockerfile: Dockerfile
image: phaustin/base_pangeo:aug6
container_name: base_pangeo
hostname: notebook
volumes:
- ${LOCAL_NOTEBOOK_DIR}:/home/jovyan/notebooks
- ${LOCAL_DATASETS}:/home/jovyan/work/datasets
- ${LOCAL_MODULES}:/home/jovyan/work/modules
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- ${NB_PORT}:8888
environment:
- DASK_SCHEDULER_ADDRESS="tcp://scheduler:8786"
networks:
- dask_net
command: "start-notebook.sh \
--NotebookApp.password=${ACCESS_TOKEN}"
#command: ["start.sh", "jupyter", "lab"]
# the actual name will be <directory_name>_<network_name>
networks:
dask_net:
driver: bridge
volumes:
jupyterhub_data: