docker/jupyter/docker-compose.yml

25 lines
517 B
YAML

version: "3"
services:
jupyter:
image: git.betalupi.com/mark/jupyter
container_name: jupyter
restart: unless-stopped
volumes:
- "./notebooks:/home/jovyan/notebooks"
- "./jupyter:/home/jovyan/.jupyter"
# host:container
ports:
- "127.0.0.1:8888:8888"
# Allow GPU access.
# Requires nvidia-containter-toolkit
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]