This is an example dockerized openHAB/mysql/grafana set up for openHAB and a Fronious inveter.
git clone https://github.com/dougculnane/openHAB_solar.git
cd openHAB_solar
# Make a bridge network for our hosts
docker network create solar-openhab
# Run mysql docker container.
docker run --name mysql --net solar-openhab -e MYSQL_ROOT_PASSWORD=openhab -e MYSQL_USER=openhab -e MYSQL_PASSWORD=openhab -e MYSQL_DATABASE=openhab -d mysql:8.0.19
# Build and run openhab docker container.
cd openhab
docker build -t solar-openhab .
docker run --name openhab --add-host=inverter:10.0.1.20 --net solar-openhab -p 8080:8080 -e "EXTRA_JAVA_OPTS=-Duser.timezone=CET" -d solar-openhab
cd ..
# Build and run grafana docker container.
cd grafana
docker build -t solar-grafana .
docker run --name grafana --net solar-openhab -p 3000:3000 -d solar-grafana
cd ..
You need to set the correct IP Address of your inverter "--add-host=inverter:10.0.1.20"
You can browse your data on http://localhost:3000 logging in as user admin and password admin.
You can browse openHAB on http://localhost:8080. There is also a HAB-Panel with an embedded grafana chart.