-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.38 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3.7'
services:
influxdb:
image: influxdb:2.7.11
container_name: InfluxDB
ports:
- "8086:8086"
env_file:
- ./gateway.conf
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
volumes:
- .influxdb:/var/lib/influxdb2
grafana:
image: grafana/grafana:11.6.1
user: "0"
container_name: Grafana
ports:
- "3000:3000"
env_file:
- ./gateway.conf
environment:
- GF_SERVER_HTTP_ADDR=0.0.0.0
volumes:
- ./grafana:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
depends_on:
- influxdb
entrypoint: ["/bin/sh", "-c", "chown -R 472:472 /var/lib/grafana && /run.sh"]
telegraf:
image: telegraf:1.34.2
container_name: Telegraf
depends_on:
- influxdb
user: "999:0"
env_file:
- ./gateway.conf
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /etc:/host/etc:ro
basicstation:
build:
context: ./basicstation
args:
BASICSTATION_COMMIT: ba4f85d
image: basicstation:2.0.6
container_name: BasicStation
devices:
- /dev/gpiochip0:/dev/gpiochip0
- /dev/spidev0.0:/dev/spidev0.0
depends_on:
- influxdb
env_file:
- ./gateway.conf
restart: always