-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (36 loc) · 1.04 KB
/
docker-compose.yaml
File metadata and controls
43 lines (36 loc) · 1.04 KB
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
services:
esp-daemon:
build:
context: .
dockerfile: Dockerfile
target: final
args:
ROS_DISTRO: ${ROS_DISTRO}
USERNAME: ros
image: scx/esp-daemon:${ROS_DISTRO}
container_name: esp-daemon
stdin_open: true
tty: true
privileged: true
network_mode: "host"
restart: unless-stopped
working_dir: /home/ros
environment:
- TERM=xterm-256color
- DISPLAY=${DISPLAY}
- ROS_DOMAIN_ID=${ROS_DOMAIN_ID}
- RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
volumes:
- ./entrypoint.sh:/entrypoint.sh
# Mount app resources into container.
- ./esp_daemon_ws/:/home/ros/esp_daemon/ # ros2 workspace
# Mount local timezone into container.
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# Mount X11 server
- /tmp/.X11-unix:/tmp/.X11-unix
# Direct Rendering Infrastructure
- /dev:/dev
stop_grace_period: 1s
entrypoint: ["/bin/bash", "-c", "/entrypoint.sh"]
command: ["/bin/bash"]