Last active
February 21, 2025 08:22
-
-
Save syoh/811fa0de2e6e467e44938d5a15717447 to your computer and use it in GitHub Desktop.
Dask Distributed Devcontainer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"dockerComposeFile": "docker-compose.yml", | |
"service": "notebook", | |
"workspaceFolder": "/home/jovyan/work", | |
"forwardPorts": [8888,8787], | |
"customizations": { | |
"vscode": { | |
"settings": { | |
"python.defaultInterpreterPath": "/opt/conda/bin/python" | |
}, | |
"extensions": [ | |
"ms-python.python", // for Python | |
"ms-toolsai.jupyter", // for Python | |
"quarto.quarto", // for Python and R | |
"analytic-signal.preview-pdf", | |
"GitHub.copilot" | |
] | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
notebook: | |
image: ghcr.io/dask/dask-notebook:latest | |
environment: | |
- DASK_SCHEDULER_ADDRESS="tcp://scheduler:8787" | |
volumes: | |
- ../..:/home/jovyan/work:cached | |
network_mode: service:scheduler | |
scheduler: | |
image: ghcr.io/dask/dask:latest | |
ports: | |
- "8786:8786" | |
command: ["dask-scheduler"] | |
worker: | |
image: ghcr.io/dask/dask:latest | |
command: ["dask-worker", "tcp://scheduler:8786"] | |
# For Docker swarm you can specify multiple workers, this is ignored by `docker-compose up` | |
deploy: | |
replicas: 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment