Skip to content

Add Docker Compose file for Grobro service#171

Open
mxgross wants to merge 2 commits into
robertzaage:mainfrom
mxgross:main
Open

Add Docker Compose file for Grobro service#171
mxgross wants to merge 2 commits into
robertzaage:mainfrom
mxgross:main

Conversation

@mxgross

@mxgross mxgross commented Apr 23, 2026

Copy link
Copy Markdown

Added a Docker Compose configuration for the Grobro service, with environment variables for MQTT settings.

I hope this makes things easier for some people and makes configuration changes more persistent and easier to track, compared to running ad-hoc docker run commands.

mxgross added 2 commits April 23, 2026 21:23
Added a Docker Compose configuration for the Grobro service with environment variables for MQTT settings.
Comment thread docker-compose.yml
SOURCE_MQTT_HOST: <YOUR MQTT SERVERS HOSTNAME OR IP>
SOURCE_MQTT_PORT: 8883
SOURCE_MQTT_TLS: "true"
SOURCE_MQTT_USER: <YOUR GROWATT DATALOGGER SERIALNUMBER>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn’t be the datalogger user, but one only used by GroBro.

Comment thread docker-compose.yml
# Source: Growatt device via TLS
SOURCE_MQTT_HOST: <YOUR MQTT SERVERS HOSTNAME OR IP>
SOURCE_MQTT_PORT: 8883
SOURCE_MQTT_TLS: "true"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This really depends on the local setup. TLS is only mandatory for the datalogger, not GroBro.

Comment thread docker-compose.yml

# Optional: Forward to Growatt Cloud (optional)
GROWATT_CLOUD: "true"
FORWARD_MQTT_HOST: mqtt.growatt.com

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those options shouldn’t be exposed to the average user. Only GROWATT_CLOUD option is necessary to control cloud forwarding.

@robertzaage

Copy link
Copy Markdown
Owner

Thanks for your contribution 😊 I think this is a great idea. But we need to work on it, to get it align with the practices on how GroBro options are intended to be used (see my comments).

Maybe it makes sense to add even more options with example values to the file. So that users have a nice template on how this software is used, additionally to the option table we already have in the configuration guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants