forked from b-data/jupyterlab-python-docker-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (58 loc) · 1.69 KB
/
docker-compose.yml
File metadata and controls
59 lines (58 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: "3.8"
services:
gpu-jupyter-noconda-py311:
deploy:
resources:
reservations:
devices:
- capabilities:
- gpu
# # Set hardware limits: one GPU, max. 48GB RAM, max. 31 GPUs
# - driver: nvidia
# capabilities: [gpu]
# device_ids: ["0"] # select one GPU
# limits:
# cpus: "31.0"
# memory: 48g
ports:
- 8888:8888
- 5005:5000
volumes:
- /home/nvadmin/data:/home/${NB_USER}/work
- hf_cache:/home/${NB_USER}/.cache/huggingface/hub
working_dir: /home/${NB_USER}
environment:
# enable sudo permissions
GRANT_SUDO: "yes"
CHOWN_HOME: "yes"
CHOWN_HOME_OPTS: "-R"
# CHOWN_EXTRA: "/home/${NB_USER}/.cache"
# CHOWN_OPTS: "-R"
# JUPYTER_ENABLE_LAB: "yes"
# .env vars
NB_USER: $NB_USER
NB_UID: $NB_UID
NB_GID: $NB_GID
MLFLOW_S3_ENDPOINT_URL: $MLFLOW_S3_ENDPOINT_URL
MLFLOW_TRACKING_URI: $MLFLOW_TRACKING_URI
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID`
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
CHROMA_API_IMPL: $CHROMA_API_IMPL
CHROMA_SERVER_HOST: $CHROMA_SERVER_HOST
CHROMA_SERVER_HTTP_PORT: $CHROMA_SERVER_HTTP_PORT
user:
"root"
restart: always
shm_size: '2gb'
image: ncicto/gpu-jupyter-noconda-py311:latest
container_name: gpu-jupyter-noconda-py311
# image: cschranz/gpu-jupyter:v1.5_cuda-11.6_ubuntu-20.04_python-only
# container_name: gpu-jupyter-cschranz
# Public bridge neccesary when running on same host as mlflow service
networks:
- public
networks:
public:
driver: bridge
volumes:
hf_cache: