-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
63 lines (58 loc) · 1.29 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
63
version: '3.6'
services:
mosquitto:
image: eclipse-mosquitto:latest
container_name: mosquitto
restart: always
volumes:
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
ports:
- "1883:1883"
- "9001:9001"
telegraf:
image: telegraf
container_name: telegraf
restart: always
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
depends_on:
- influxdb
links:
- influxdb
ports:
- '8125:8125'
influxdb:
image: influxdb:latest
container_name: influxdb
restart: always
env_file:
- .env
ports:
- '8086:8086'
volumes:
- influxdb_storage:/var/lib/influxdb
- ./influxdb/scripts:/docker-entrypoint-initdb.d
grafana:
image: grafana/grafana
container_name: grafana-server
restart: always
depends_on:
- influxdb
env_file:
- .env
links:
- influxdb
ports:
- '3000:3000'
volumes:
- grafana_storage:/var/lib/grafana
- ./grafana/custom_grafana.ini:/etc/grafana/grafana.ini
- ./grafana/:/etc/grafana
miner-stats:
container_name: miner-stats
volumes:
- ./python_backend/miner_stats.py:/miner_stats.py
build: ./python_backend
volumes:
grafana_storage: {}
influxdb_storage: {}