-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (40 loc) · 1.08 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3.8'
services:
build_image:
build:
context: .
dockerfile: ./docker/Dockerfile
image: tfm-autonomous-drive-system:latest
command: echo "Image built"
vehicle_inference:
image: tfm-autonomous-drive-system:latest
container_name: vehicle-inference-node
command: ros2 launch vehicle_inference vehicle_inference.launch.py
volumes:
- ./models:/models
networks:
- shared_network
privileged: true
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
vehicle_control:
image: tfm-autonomous-drive-system:latest
container_name: vehicle-control-node
command: ros2 launch vehicle_control vehicle_control.launch.py
networks:
- shared_network
# # ROS2 data collector container
# data_collector:
# image: tfm-autonomous-drive-system:latest
# container_name: data-collector-node
# command: bash /recording-rosbag.sh
# volumes:
# - ./data:/data
# networks:
# - shared_network
networks:
shared_network:
external:
name: tfm_ros_net