jupyter_gpu/fastai/docker-compose.yml
2024-08-07 21:01:30 +00:00

27 lines
808 B
YAML

version: '3.8'
#==================================================
# Relies on the file `.env` content for varables:
# ROOT_DIR
# JUPYTER_PORT
#==================================================
services:
jupyter:
# build: ${ROOT_DIR}
# image: cvtt/fastai:v0.0.1
image: cloud21.cvtt.vpn:5500/fastai_jupyter:latest
container_name: fastai_jupyter
runtime: nvidia
restart: unless-stopped
environment:
- JUPYTER_ENABLE_LAB=yes
volumes:
- ${ROOT_DIR}/notebooks:/workspace
- ${ROOT_DIR}/jupyter_settings/user-settings:/root/.jupyter/lab/user-settings
- ${ROOT_DIR}/jupyter_settings/workspaces:/root/.jupyter/lab/workspaces
- ${ROOT_DIR}/.cache/torch:/root/.cache/torch
ports:
- "${JUPYTER_PORT}:${JUPYTER_PORT}"
shm_size: "8gb"