-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.58 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3.8'
services:
# Carla Server
carla_server:
build:
context: .
dockerfile: ./docker/carla_server/Dockerfile
image: carla-server:0.9.14
container_name: carla_server
command: ["bash", "./CarlaUE4.sh", "-vulkan", "-nosound", "-RenderOffScreen", "-fps=30"]
runtime: nvidia
privileged: true
environment:
- DISPLAY=${DISPLAY}
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
- QT_X11_NO_MITSHM=1 # Fix a bug with QT
- SDL_VIDEODRIVER=x11
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
networks:
- shared_network
# foxglove to visualize live data
foxglove_bridge:
build:
context: .
dockerfile: ./docker/foxglove_bridge/Dockerfile
image: foxglove-bridge:latest
container_name: foxglove_bridge
command: ros2 launch foxglove_bridge foxglove_bridge_launch.xml port:=8765
ports:
- 8765:8765
networks:
- shared_network
depends_on:
carla_server:
condition: service_started
# Carla ROS bridge container
custom_carla_bridge:
build:
context: .
dockerfile: ./docker/custom_carla_bridge/Dockerfile
image: custom-carla-bridge:latest
container_name: custom-carla-bridge
command: /bin/sh -c "sleep 12 && ros2 launch custom_carla_bridge bridge.launch.py host:=carla_server town:=Town07"
networks:
- shared_network
depends_on:
carla_server:
condition: service_started
foxglove_bridge:
condition: service_started
networks:
shared_network:
name: tfm_ros_net
driver: bridge