-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
57 lines (50 loc) · 1.18 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
49
50
51
52
53
54
55
56
version: '3.7'
volumes:
prometheus_data: {}
grafana_data: {}
services:
hs110sim:
container_name: hs110sim
image: tilt.dev/hs110-sim
build:
context: .
dockerfile: Dockerfile.sim
# ports:
# - 9999:9999
hs110:
image: tilt.dev/hs110-exporter
depends_on: [ hs110sim ]
build: .
environment:
- HS110IP=hs110sim
- FREQUENCY=1
- LISTENPORT=8110
# - LABEL=location=home
# ports:
# - 8110:8110
prometheus:
image: tilt.dev/prometheus
build: ./prometheus
volumes:
- prometheus_data:/prometheus
command:
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=1d'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
- '--config.file=/etc/prometheus/prometheus.yml'
depends_on:
- hs110
grafana:
image: tilt.dev/grafana
build: ./grafana
user: "104"
depends_on:
- prometheus
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_PASSWORD=developer
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
- grafana_data:/var/lib/grafana