2022-10-01 17:30:14 -07:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
jupyter:
|
|
|
|
image: git.betalupi.com/mark/jupyter
|
|
|
|
container_name: jupyter
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
volumes:
|
2022-10-01 19:10:15 -07:00
|
|
|
- "./notebooks:/home/jovyan/notebooks"
|
|
|
|
- "./jupyter:/home/jovyan/.jupyter"
|
2022-10-01 17:30:14 -07:00
|
|
|
|
|
|
|
# host:container
|
|
|
|
ports:
|
2022-11-15 22:06:34 -08:00
|
|
|
- "127.0.0.1:8888:8888"
|
2023-03-05 10:14:13 -08:00
|
|
|
|
|
|
|
# Allow GPU access.
|
2023-03-07 09:03:10 -08:00
|
|
|
# Requires nvidia-container-toolkit
|
2023-03-05 10:14:13 -08:00
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
reservations:
|
|
|
|
devices:
|
|
|
|
- driver: nvidia
|
|
|
|
count: 1
|
|
|
|
capabilities: [gpu]
|