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

38 lines
1.0 KiB
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
2024-08-06 11:37:45 +02:00
shm_size: '2gb'
2020-12-02 13:22:03 +01:00
env_file: ./.env
ports:
- ${JUPYTER_PORT}:${JUPYTER_PORT}
volumes:
- ${ROOT_DIR}:/jupyter
2024-08-06 11:37:45 +02:00
- ${DATA_DIR}:/jupyter/datasets
2020-12-02 13:22:03 +01:00
environment:
- NVIDIA_VISIBLE_DEVICES=all
command:
[
"jupyter",
"notebook",
"--ip=*",
"--port=${JUPYTER_PORT}",
"--allow-root",
"--notebook-dir=${JUPYTER_DIR}",
'--NotebookApp.token=${JUPYTER_TOKEN}'
]
deploy:
2024-08-06 11:37:45 +02:00
restart_policy:
condition: any
2020-12-02 13:22:03 +01:00
resources:
reservations:
devices:
- 'driver': 'nvidia'
'count': 1
'capabilities': ['gpu', 'utility', 'compute']