MattJeanes / TeslaMateAgile

Integration to automatically fill in prices for charge data captured by TeslaMate for smart energy providers
MIT License
82 stars 10 forks source link

Change Port from Database #14

Closed doenerklaus closed 3 years ago

doenerklaus commented 3 years ago

Hi Matt,

nice work you have done here :) Is there a way to change the default port of the database?

Thanks

MattJeanes commented 3 years ago

Yes you should just be able to include it as part of the DATABASE_HOST environment variable, for example DATABASE_HOST=database:3699

It should match whatever your TeslaMate container is set to

doenerklaus commented 3 years ago

Thanks for your fast answer.

When i change the database environment to DATABASE_HOST=database:3699

The application tries to connect to database:3699:5432

The port 5432 must be hardcoded somewhere

MattJeanes commented 3 years ago

Ah very interesting, so it does! I've released version v1.4.1 with a DATABASE_PORT option - can you give that a go and see if it's all good?

doenerklaus commented 3 years ago

It's working fine now. Thanks, you are great

MattJeanes commented 3 years ago

Glad to hear, you're welcome! 😄