-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (46 loc) · 1.36 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
version: '3.2'
services:
influxdb:
image: influxdb:1.8-alpine
container_name: influxdb
ports:
- 8086:8086
- 8089:8089/udp
volumes:
- ./data/influxdb-storage:/var/lib/influxdb:rw
- ./config/influxdb.conf:/etc/influxdb/influxdb.conf
# environment:
# INFLUXDB_DB: auto-telemetry
# # INFLUXDB_ADMIN: admin_atc
# # INFLUXDB_ADMIN_PASSWORD: adminPassword123
# INFLUXDB_USER: atc
# INFLUXDB_USER_PASSWORD: atc
# INFLUXDB_HTTP_AUTH_ENABLED: "true"
command: ["-config", "/etc/influxdb/influxdb.conf"]
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- 3000:3000
volumes:
- ./data/grafana-storage:/var/lib/grafana:rw
auto-telemetry-collector:
image: inosion/auto-telemetry
container_name: auto-telemetry-collector
volumes:
# - ./bluetooth-rfcomm.conf:/etc/bluetooth/rfcomm.conf:ro
- ./auto-telemetry-collector.py:/usr/local/bin/auto-telemetry-collector.py:ro
ports:
- 5000:5000
volumes:
- ./:/host:ro
- /dev:/dev:rw
- /var:/var:rw
- /sys:/sys:rw
privileged: true
working_dir: /host
environment:
- ATC_CONFIG=/etc/auto-telemetry-collector/default-auto-telemetry-config.yaml
command: ["monitor", "--device", "/dev/ttyUSB0" , "--config", "${ATC_CONFIG}"]
depends_on:
- grafana