forked from cedbossneo/mowgli-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.remote.host.yaml
73 lines (68 loc) · 1.87 KB
/
docker-compose.remote.host.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
version: '3'
services:
web:
container_name: mowgli-web
image: nginx
ports:
- 4005:80
volumes:
- ./web:/usr/share/nginx/html:ro
restart: unless-stopped
mosquitto:
container_name: mowgli-mqtt
hostname: mosquitto
image: eclipse-mosquitto:latest
ports:
- 1883:1883
- 9001:9001
volumes:
- ./config/mqtt/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
restart: unless-stopped
roscore:
container_name: mowgli-roscore
image: ${IMAGE}
network_mode: host
#pull_policy: always
tty: true
privileged: true
command:
- /opt/ros/noetic/bin/roscore
environment:
ROS_IP: ${ROS_IP}
ROSCONSOLE_CONFIG_FILE: /config/rosconsole.config
ROSOUT_DISABLE_FILE_LOGGING: true
tmpfs: /root/.ros/log/
volumes:
- ./config/om:/config:ro
- ./ros:/root/.ros/
- /etc/timezone:/etc/timezone:ro
restart: unless-stopped
openmower:
container_name: mowgli-openmower
image: ${IMAGE}
network_mode: host
#pull_policy: always
tty: true
privileged: true
logging:
driver: "json-file"
options:
max-file: "5"
max-size: 10m
environment:
OM_NO_GPS: "True"
ROS_MASTER_URI: http://${ROS_IP}:11311
ROS_IP: ${ROS_IP}
ROSCONSOLE_CONFIG_FILE: /config/rosconsole.config # comment this line out to enable more logs
ROSOUT_DISABLE_FILE_LOGGING: true # comment this line out to enable more logs
tmpfs: /root/.ros/log # comment this line out to enable persistent logs
volumes:
- ./config/om:/config:ro
- ./mower_params:/root/mower_params:ro
- ./params:/opt/open_mower_ros/src/open_mower/params:ro
- ./ros:/root/.ros/
- /etc/timezone:/etc/timezone:ro
- /dev:/dev
depends_on:
- roscore
restart: unless-stopped