image2rtsp/docker-compose.yml

24 lines
981 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:-}
# FASTRTPS_DEFAULT_PROFILES_FILE is set in the Dockerfile (baked into image)
# Ensure the node binds to non-localhost interface (disable local_only)
# and subscribe to the actual image topic available on the host
#log_level:= info, debug, warning, error, fatal
command: ["image2rtsp.launch.py", "local_only:=false", "topic:=/camera/image", "log_level:=info"]
restart: unless-stopped