gaetancollaud / digitalstrom-mqtt

Bridge between digitalSTROM and MQTT
GNU Affero General Public License v3.0
23 stars 4 forks source link

Installation with Docker Compose #15

Closed djacid closed 3 years ago

djacid commented 3 years ago

Could you please tell me how I could install it with docker compose? Thank you in advance

gaetancollaud commented 3 years ago

Just use the provided docker-compose file: https://github.com/gaetancollaud/digitalstrom-mqtt/blob/master/docker-compose.yml

djacid commented 3 years ago

I have already done this but I got this error: “ERROR: Cannot locate specified Dockerfile: Dockerfile”

gaetancollaud commented 3 years ago

Just remove the line 5: https://github.com/gaetancollaud/digitalstrom-mqtt/blob/master/docker-compose.yml#L5

And you maybe want to create a .env file with your config. Ex:

DIGITALSTROM_HOST=192.168.10.50
DIGITALSTROM_USERNAME=dssadmin
DIGITALSTROM_PASSWORD=your-password
MQTT_URL=tcp://192.168.10.12:1883
REFRESH_AT_START=true
djacid commented 3 years ago

Now there is another error. ERROR: manifest for gaetancollaud/digitalstrom-mqtt:dev not found: manifest unknown: manifest unknown

gaetancollaud commented 3 years ago

change dev for latest

djacid commented 3 years ago

Thank you, that's worked, but unfortunately I can't see any device on mqtt explorer

djacid commented 3 years ago

Perfetct, after some tries now I can see my devices. Thank you very much.

gaetancollaud commented 3 years ago

No problem, I will note to myself to have a better example with docker compose.