-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
112 lines (96 loc) · 2.9 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
version: '3'
services:
influxdb:
container_name: influxdb
image: influxdb:2.2
restart: unless-stopped
volumes:
- ./data/influxdb2:/var/lib/influxdb2
- ./data/influxdb2-config:/etc/influxdb2
ports:
- "8086:8086"
influxdb_cli:
container_name: influxdb_cli
links:
- influxdb
image: influxdb:2.2
entrypoint: influx setup --bucket main -t my_secret_influx_token -o acme --username=admin --password=my_secret_passwd --host=http://influxdb:8086 -f
restart: on-failure:10
depends_on:
- influxdb
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto:latest
restart: always
ports:
- "1883:1883"
volumes:
- ./data/mosquitto/config:/mosquitto/config
- ./data/mosquitto/data:/mosquitto/data
- ./data/mosquitto/log:/mosquitto/log
pyfusionsolar:
container_name: pyfusionsolardatarelay
image: jsprnl/pyfusionsolardatarelay:latest
#build: ./PyFusionSolarDataRelay
restart: unless-stopped
depends_on:
- influxdb
- mosquitto
environment:
- pvdebug=True
- pvsysname=inverter01
- pvfusionsolar=True
- pvfusionsolarkkid=GET_THIS_STRING_FROM_YOUR_KIOSK_URL
- pvfusionminutecron=0,30 # Please note that the kiosk only seems to update each 30mins
- pvinflux=True
- pvinflux2=True
- pvifhost=influxdb
- pvif2protocol=http
- pvif2org=acme
- pvif2bucket=fusionsolar
- pvif2token=GENERATE_TOKEN_IN_INFLUXDB_ADMIN_PANEL
- pvpvoutput=True
- pvpvoutputsystemid=123456
- pvpvoutputapikey=GENERATE_THIS_AND_SYSTEMID_ON_PVOUTPUT.ORG
- pvmqtt=True
- pvmqtthost=mosquitto
- pvmqttauth=False
- pvgridrelay=False
- pvgridrelaykenterpasswd=secretpassword
- pvgridrelaysysname=transformer01
- pvgridrelaykenterean=000000000000000000
- pvgridrelaykentermeterid=0000000000
- pvgridrelaysys02enabled=False
- pvgridrelaysysname02=transformer02
- pvgridrelaykenterean02=000000000000000000
- pvgridrelaykentermeterid02=0000000000
volumes:
- /etc/localtime:/etc/localtime:ro
grafana:
depends_on:
- influxdb
image: grafana/grafana-oss:8.5.5
container_name: grafana
restart: unless-stopped
ports:
- 3000:3000
user: "1000:1000"
volumes:
- ./data/grafana:/var/lib/grafana
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_NAME=Main Org.
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
- GF_AUTH_ANONYMOUS_HIDE_VERSION=True
- GF_SECURITY_ALLOW_EMBEDDING=True
homeassistant:
container_name: homeassistant
depends_on:
- mosquitto
image: homeassistant/home-assistant
volumes:
- ./data/hass:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
network_mode: host