LordMike / MBW.BlueRiiot2MQTT

Utility to map between Blue Riiots pool API, and Home Assistant MQTT
47 stars 2 forks source link

Don't work in docker-compose #75

Closed jeulogio closed 1 year ago

jeulogio commented 1 year ago

Hello,

First of all, thank you for your work.

I have Mosquitto and Home Assistant with docker-compose. I try to run in docker-compose, but not works. This is the error:

[MqttNet.MqttClient] Error while connecting with serve.

My docker-compose configuration:

blueriiot2mqtt: image: lordmike/blueriiot2mqtt: latest environment: MQTT_Server: my server ip address BlueRiiot_Username: my username BlueRiiot_Password: my password

If i run with CLI using:

docker run -d -e MQTTServer=myqueue.local -e BlueRiiotUsername=myuser -e BlueRiiot__Password=mypassword lordmike/blueriiot2mqtt:latest

works correctly.

Any idea about the problem in docker-compose?

Thank yo

jeulogio commented 1 year ago

Hello,

I respect the tab in the docker-compose configuration.

Thanks

LordMike commented 1 year ago

Notice the double-underscore in the environment variables.