22 lines
827 B
YAML
22 lines
827 B
YAML
services:
|
|
image2rtsp:
|
|
build: .
|
|
image: image2rtsp:latest
|
|
# Use host networking so the container binds to the host interfaces directly
|
|
# (Linux only). Remove port mapping when using host networking.
|
|
network_mode: "host"
|
|
environment:
|
|
- ROS_DISTRO=humble
|
|
# Propagate host ROS environment so DDS/discovery match (set on host if needed)
|
|
- ROS_DOMAIN_ID=${ROS_DOMAIN_ID:-0}
|
|
- RMW_IMPLEMENTATION=${RMW_IMPLEMENTATION:-}
|
|
# GStreamer debug level (uncomment for verbose GStreamer logging)
|
|
# - GST_DEBUG=${GST_DEBUG:-}
|
|
# Ensure the node binds to non-localhost interface (disable local_only)
|
|
# and subscribe to the actual image topic available on the host
|
|
|
|
command: ["image2rtsp.launch.py", "local_only:=false", "topic:=/camera/image"]
|
|
|
|
|
|
restart: unless-stopped
|