-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (34 loc) · 1012 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (34 loc) · 1012 Bytes
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
services:
research-template:
build: .
image: research-template:latest
# No fixed container_name: repos derived from this template must be able to
# run side by side (compose derives a unique name per project directory).
user: "${UID:-1000}:${GID:-1000}"
working_dir: /workspace
environment:
HOME: /workspace
XDG_CACHE_HOME: /workspace/.cache
UV_CACHE_DIR: /workspace/.cache/uv
MPLCONFIGDIR: /workspace/.cache/matplotlib
volumes:
- .:/workspace
shm_size: "16g"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
dns:
- 8.8.8.8
- 8.8.4.4
ports:
# Host port is configurable so multiple template-derived repos can run at
# once: set JUPYTER_PORT in a local .env file (see .env.example).
- "${JUPYTER_PORT:-8889}:8888"
restart: unless-stopped
tty: true
stdin_open: true
command: ["bash"]