Different ports #152
Replies: 2 comments 2 replies
-
OK, so it sounds like you already have some familiarity with Docker Compose, Grafana and InfluxDB - which is probably better than me - I'm just finding my feet, but I'll have a go... As you've no doubt figured out, Powerwall-Dashboard uses InfluxDB to store the data, and Grafana to display it, and adds Telegraf, optionally Weather411 to pull in weather data, and of course uses PyPowerwall to get the Powerwall data. Two options:
I'd suggest option 1 - at least at first - and if you're happy, try option 2. For option 1, you may only need to change For option 2, deleting the entire service definition for influxdb might or might not allow this docker compose to find your existing influxdb instance and use it. |
Beta Was this translation helpful? Give feedback.
-
@shawwellpete I'm in a similar situation. I had influxdb and telegraf running for a home automation project and another instance of Grafana running also. All of my powerwall containers have a 'pw-' prefix to deconflict the container names, so pw-grafana, pw-influxdb, etc. I had to use alternate ports to deconflict everything. I'm pretty sure that within the stack, if you use the container name instead of the IP, you can re-use ports. But those ports can't be published outside the container if they conflict. So IIRC you can have two stacks, for example "powerwall-dashboard" and "home-assistant", with containers "pw-influxdb" and "influxdb", then within the powerwall-dashboard stack you can use "pw-influxdb:8086" and within the home-assistant stack you can use "influxdb:8086". I eventually shut down the other influx and grafana containers, but I'm still on alternate ports for both of those and portainer. At this point I don't think I have any conflicts, but it's too much bother to go and change everything back to the defaults when everything works fine the way it is. |
Beta Was this translation helpful? Give feedback.
-
Hi Guys,
I love the look of Powerwall-Dashboard and have tried to set it up. I am running Docker and Portainer in Debian which I use for Home Assistant, TeslaMate, Grafana and a few other apps. I have created Portainer Stacks (which use Docker Compose) for all the apps.
I followed the installation instructions and got this error
ERROR: for influxdb Cannot create container for service influxdb: Conflict. The container name "/influxdb" is already in use by container "9b9d8614419791c672a1b691a972c7d67a890192309154a0a7b6ef1b2d112e20". You have to remove (or rename) that container to be able to reuse t
Creating pypowerwall ... done
I do have an instance of influxdb which I use to allow me to use Grafana on Home Assistant data, I also already have Grafana installed for Teslamate (on port 3000). Portainer uses port 9000.
Ideally I would like to set up a Docker Compose Stack for Powerwall-Dashboard using my current installations of Grafana and Influx-db.
I found the pypowerwalll.yml that was created by my setup process which seems to file I need. Any suggestions on how to edit it to use my current installations?
Thank you, in Advance for any help and Happy New Year!
Beta Was this translation helpful? Give feedback.
All reactions