docker-compose.yml 473 B

123456789101112131415161718192021
  1. version: '3'
  2. services:
  3. joystick_example:
  4. build:
  5. context: ../
  6. dockerfile: basic_example/Dockerfile
  7. ports:
  8. - 8000:8000
  9. volumes:
  10. - ../ros2_ws/src:/ros2_ws/src
  11. command: ros2 run nicegui_ros2 joystick_nicegui
  12. turtle_sim:
  13. image: osrf/ros:humble-desktop
  14. environment:
  15. - DISPLAY
  16. volumes:
  17. - /tmp/.X11-unix:/tmp/.X11-unix:rw
  18. command: ros2 run turtlesim turtlesim_node
  19. depends_on:
  20. - joystick_example