-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (33 loc) · 1.11 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
version: 3.0.0
services:
# This is our server
node-1:
image: node1:latest
build:
context: ./node1
dockerfile: Dockerfile
command: bash -c "while true; do sleep 1; done"
# Reads data from telementry server
grafana-dashboard:
image: grafana/grafana-oss:8.2.6
env_file:
- grafana/grafana.env
ports:
- "3000:3000"
# Stores the data from telemetry server
influxdb:
image: influxdb:1.8-alpine
env_file:
- influxdb/influxdb.env
ports:
- "8086:8088"
# Monitors defined containers and pushes metrics to influxdb
telegraf:
image: telegraf:1.12.3-alpine
env_file:
- telegraf/telegraf.env
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8081:8081"