-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (45 loc) · 1.51 KB
/
docker-compose.yaml
File metadata and controls
48 lines (45 loc) · 1.51 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
services:
robotnik_simulator:
container_name: robotnik_simulator
image: robotnik_simulation-robotnik_simulation:latest
build:
context: .
dockerfile: ./Dockerfile
args:
base_image: robotnik/ros
ros_distro: jazzy
image_base_version: 0.6.2
ros_mirror: ros.mirror.robotnik.ws
network_mode: host
privileged: true
runtime: nvidia
environment:
ROS_DOMAIN_ID: 0
DISPLAY: ${DISPLAY} # Forward X11 display
NVIDIA_DRIVER_CAPABILITIES: compute,utility,graphics # Allow GPU access
NVIDIA_VISIBLE_DEVICES: all # Expose all GPUs
devices:
- "/dev/dri:/dev/dri" # Allow OpenGL rendering
- /tmp/.X11-unix:/tmp/.X11-unix
robotnik_robot_spawner:
container_name: robotnik_robot_spawner
image: robotnik_simulation-robotnik_simulation:latest
network_mode: host
privileged: true
runtime: nvidia
env_file:
- env/robot.env
environment:
ROS_DOMAIN_ID: 0
DISPLAY: ${DISPLAY} # Forward X11 display
NVIDIA_DRIVER_CAPABILITIES: compute,utility,graphics # Allow GPU access
NVIDIA_VISIBLE_DEVICES: all # Expose all GPUs
ROS_BU_LAUNCH: spawn_robot.launch.py robot:=$${ROBOT} robot_model:=$${ROBOT_MODEL} has_arm:=$${HAS_ARM}
devices:
- "/dev/dri:/dev/dri" # Allow OpenGL rendering
- /tmp/.X11-unix:/tmp/.X11-unix
depends_on:
robotnik_simulator:
condition: service_healthy
volumes:
- ./entrypoint.sh:/usr/local/bin/ros_entrypoint.sh