Added automatic restart docker compose service

This commit is contained in:
2026-04-16 22:26:03 +02:00
parent c431a7f8d5
commit e204792cbf

View File

@@ -16,4 +16,22 @@ services:
entrypoint: ["sleep","infinity"]
profiles:
- base
- base
toid_forever:
image: localhost:5000/toid
build: .
container_name: toid
restart: unless-stopped
privileged: true
network_mode: host
volumes:
- ./:/ros_ws
- /dev/:/dev/
- /sys/:/sys/
- /run/udev/:/run/udev/
entrypoint: ["bash", "-c", "ros2 launch toid_navigation main.py use_lidar:=False use_mock:=False"]