-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
65 lines (63 loc) · 2.3 KB
/
Copy pathcompose.yaml
File metadata and controls
65 lines (63 loc) · 2.3 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
60
61
62
63
64
services:
simevals:
build:
context: .
image: sim-evals:latest
container_name: sim-evals
# Map your repo into /workspace (edit in VS Code like normal)
volumes:
- .:/workspace:cached
# Cache uv between runs for speed
- sim-uv-cache:/root/.cache/uv
- sim-venv:/workspace/.venv # <— persist the .venv across restarts/rebuilds
# Isaac/Omni caches (best effort—keeps big downloads off hot path)
- sim-ov-cache:/root/.cache/ov
- sim-ov-share:/root/.local/share/ov
- sim-isaac-cache:/root/.cache/isaac
# 👇 Mount host ICD + EGL vendor JSONs read-only
- /usr/share/vulkan/icd.d:/usr/share/vulkan/icd.d:ro
- /usr/share/glvnd/egl_vendor.d:/usr/share/glvnd/egl_vendor.d:ro
# Use host network mode - all ports automatically accessible on host
# This means you can access localhost:8888, localhost:8000, etc. directly from your host machine
network_mode: "host"
# Note: extra_hosts is not needed with network_mode: host
# extra_hosts:
# - "host.docker.internal:host-gateway"
working_dir: /workspace
shm_size: "16g"
# Give container your GPUs (requires NVIDIA Container Toolkit)
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
# Compose v2 shorthand:
gpus: all
# environment:
# # Play nice with CLI tools
# - PYTHONUNBUFFERED=1
# - UV_SYSTEM_PYTHON=1
environment:
# With network_mode: host, policy server on host is accessible via localhost
- POLICY_HOST=localhost
- PYTHONUNBUFFERED=1
- UV_SYSTEM_PYTHON=1
# Make NVIDIA runtime mount full driver stack including Vulkan ICDs
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility,graphics
# (optional) force-select NVIDIA Vulkan ICD if multiple are present
- VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json
# If you need X/GUI later, uncomment the next 2 lines and allow X with: xhost +local:docker
# environment:
# - DISPLAY=${DISPLAY}
# volumes:
# - /tmp/.X11-unix:/tmp/.X11-unix:rw
# Keep it alive so you can exec in even if no command is running
tty: true
stdin_open: true
volumes:
sim-uv-cache:
sim-venv:
sim-ov-cache:
sim-ov-share:
sim-isaac-cache: