kbialek / deye-inverter-mqtt

Reads Deye solar inverter metrics and posts them over mqtt
Apache License 2.0
212 stars 50 forks source link

Portainer Support #59

Closed edvandreas closed 1 year ago

edvandreas commented 1 year ago

I already have some containers running using Portainer.

Can you please add Portainer support or a docker compose file?

Maybe someone is already using Portainer?

Thanks for you efforts! Best Regards, Andreas

kbialek commented 1 year ago

Sure, I've added a docker-compose.yaml.

I've no idea what extra setup is required by Portainer. Anyhow I do not plan to add customization for any specific deployment tools. Imho that's way beyond the scope of this project.

edvandreas commented 1 year ago

Thank you for your help.

I never had a Docker container with external env file before. I could not really get the config.env file inside the container so I moved the parameters inside the docker compose. Works pretty well.

`version: "3.3" services: deye-mqtt: image: ghcr.io/kbialek/deye-inverter-mqtt:latest container_name: deye-mqtt networks: LAN: ipv4_address: 192.168.1.215 environment:

networks: LAN: external: name: LAN`