-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
43 lines (40 loc) · 1.5 KB
/
docker-compose.yml
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
version: "3.8"
services:
notebook:
build: . # Builds the image from the Dockerfile in the current directory
image: deepsport:latest
hostname: "${HOSTNAME}" # environment variable defined in your .profile for instance
command: ["uv", "run", "jupyter", "notebook", "--port=${NB_PORT}", "--ip=${HOSTNAME}", "--allow-root", "--no-browser"]
ports:
- ${NB_PORT}:${NB_PORT}
environment:
LOCAL_STORAGE: /datasets
DATA_PATH: /datasets
RESULTS_FOLDER: /home/deepsport/results
LOCALSCRATCH: /localscratch
volumes:
- "${LOCAL_STORAGE}:/datasets"
- "${RESULTS_FOLDER}:/home/deepsport/results"
- "${LOCALSCRATCH}:/localscratch"
- ".:/home/deepsport" # It's really painfull to not have workdir mounted (for temporary files, benefit from changes, ...)
deploy:
resources:
reservations:
devices:
- driver: nvidia # Uses all visible gpus (cgroup restrictions apply)
capabilities: [gpu]
tensorboard:
build: .
image: deepsport:latest
hostname: "${HOSTNAME}"
command: ["uv", "run", "tensorboard", "--port=${TB_PORT}", "--host=${HOSTNAME}", "--logdir=/home/deepsport/results/tensorboard", "--load_fast=false"]
ports:
- ${TB_PORT}:${TB_PORT}
volumes:
- "${RESULTS_FOLDER}:/home/deepsport/results"
deploy:
resources:
reservations:
devices:
- driver: nvidia # Uses all visible gpus (cgroup restrictions apply)
capabilities: [gpu]