-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·137 lines (126 loc) · 3.83 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
version: "3.3"
services:
heimdall:
image: lscr.io/linuxserver/heimdall:arm32v7-2.5.6
# image: lscr.io/linuxserver/heimdall
container_name: heimdall
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- ./heimdall:/config
ports:
- 80:80
- 443:443
restart: unless-stopped
# fritzexport:
# image: jaymedh/fritzbox_smarthome_exporter:v0.0.8
# container_name: fritzexport
# restart: unless-stopped
# ports:
# - 9103:9103
# volumes:
# - ./boxcert.cer:/fritzbox.pem:ro
# environment:
# - USERNAME=user # maybe change this
# - PASSWORD=password # maybe change this
# - url="https://fritz.box:8443"
# - CERT=/fritzbox.pem
# - NOVERIFY=false
mosquitto:
image: eclipse-mosquitto:latest
container_name: mosquitto
restart: unless-stopped
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto/config:/mosquitto/config
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
mqttexplorer:
image: smeagolworms4/mqtt-explorer
container_name: mqttexplorer
restart: unless-stopped
ports:
- 4000:4000
volumes:
- ./mqttexplorer:/mqtt-explorer/config
environment:
- HTTP_PORT=4000
- CONFIG_PATH=/mqtt-explorer/config
telegraf:
image: telegraf
container_name: telegraf
restart: unless-stopped
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf
depends_on:
- mosquitto
- influxdb
influxdb:
# image: influxdb:1.8
image: ghcr.io/terjesannum/influxdb-arm32:1.8.10-1 # included are fixes for 32bit memory limitations, see
# https://github.com/influxdata/influxdb/pull/12362
# https://github.com/terjesannum/docker-influxdb-arm32
container_name: influxdb
restart: unless-stopped
ports:
- "8086:8086"
- "8083:8083"
volumes:
- ./influx/data:/var/lib/influxdb
- ./influx/config:/etc/influxdb
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=my-user # maybe change this here and in telegraf.conf line 12/13
- DOCKER_INFLUXDB_INIT_PASSWORD=my-password # maybe change this here and in telegraf.conf line 12/13
- DOCKER_INFLUXDB_INIT_ORG=my-org
- DOCKER_INFLUXDB_INIT_BUCKET=my-bucket
# - DOCKER_INFLUXDB_INIT_RETENTION=1w
chronograf: # gui for influxdb
image: chronograf
container_name: chronograf
restart: unless-stopped
ports:
- "8888:8888"
volumes:
- ./chronograf:/var/lib/chronograf
grafana:
image: grafana/grafana-oss
container_name: grafana
restart: unless-stopped
user: "1000"
ports:
- "3000:3000"
volumes:
- ./grafana:/var/lib/grafana
depends_on:
- influxdb
environment:
GF_RENDERING_SERVER_URL: http://renderer:8081/render
GF_RENDERING_CALLBACK_URL: http://grafana:3000/
GF_LOG_FILTERS: rendering:debug
GF_DATE_FORMATS_INTERVAL_HOUR: "DD.MM. HH:mm"
GF_DATE_FORMATS_INTERVAL_DAY: "DD.MM."
renderer: #for grafana
# image: grafana/grafana-image-renderer:3.5.0 # use this on a regular pc / server
# image: adejong/grafana-image-renderer-pi:1.0.8-beta2 # use this on a raspberry pi (did encounter problem on pi3 + grafana v10)
image: betashil/grafana-image-renderer # should work on raspberry pi (arm) / arm64 and regular 64bit pc (amd64)
container_name: renderer
restart: unless-stopped
ports:
- 8081:8081
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- ./homeassistant:/config
- /etc/localtime:/etc/localtime:ro
- ./homeassistant/.ssh:/root/.ssh
restart: unless-stopped
# privileged: true
# network_mode: host
ports:
- "8123:8123"