stud-ai/0-install/docker-compose.yml

34 lines
929 B
YAML
Raw Normal View History

2020-12-02 13:22:03 +01:00
version: "3.8"
services:
jupyter-server:
image: dl-jupyter
init: true
build:
context: ./
dockerfile: jupyter.Dockerfile
env_file: ./.env
ports:
- ${JUPYTER_PORT}:${JUPYTER_PORT}
volumes:
- ${ROOT_DIR}:/jupyter
environment:
- NVIDIA_VISIBLE_DEVICES=all
command:
[
"jupyter",
"notebook",
"--ip=*",
"--port=${JUPYTER_PORT}",
"--allow-root",
"--notebook-dir=${JUPYTER_DIR}",
'--NotebookApp.token=${JUPYTER_TOKEN}'
]
deploy:
resources:
reservations:
devices:
- 'driver': 'nvidia'
'count': 1
'capabilities': ['gpu', 'utility', 'compute']