spiri-sdk/docker-compose.yml

48 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2024-09-17 12:30:08 -03:00
services:
gui-tools:
2024-10-25 14:49:07 -03:00
env_file:
- .env
build:
context: ./guiTools/
environment:
# Display settings
DISPLAY: "${DISPLAY}"
WAYLAND_DISPLAY: "${WAYLAND_DISPLAY}"
# Uncomment below if using X11
# QT_QPA_PLATFORM: "${QT_QPA_PLATFORM:-xcb}"
XDG_RUNTIME_DIR: "${XDG_RUNTIME_DIR}"
ROS_MASTER_URI: "http://ros-master:11311"
2024-11-24 15:03:59 -04:00
RMW_IMPLEMENTATION: rmw_cyclonedds_cpp
volumes:
# X11 socket
- /tmp/.X11-unix:/tmp/.X11-unix
2024-09-19 14:33:29 -03:00
- ${XAUTHORITY:-~/.Xauthority}:/root/.Xauthority
# Wayland socket
#- ${XDG_RUNTIME_DIR}/wayland-0:${XDG_RUNTIME_DIR}/wayland-0
# Access to GPU devices
- /dev/dri:/dev/dri
# Code and configuration
- ./guiTools/spiri_sdk_guitools/:/app/spiri_sdk_guitools/
- ./robots:/robots
- /var/run/docker.sock:/var/run/docker.sock
devices:
# Provide access to GPU devices (supports non-NVIDIA GPUs)
- /dev/dri:/dev/dri
2024-10-25 14:49:07 -03:00
network_mode: host
ports:
- 8923:8923
ipc: host
privileged: true # Required for GPU access
# deploy:
# resources:
# reservations:
# devices:
# - driver: cdi # Optional for advanced resource scheduling
# device_ids:
# - "all" # Use "all" for all available GPUs