rstrouse / nodejs-poolController-dashPanel

A dashboard panel for tagyoureit/nodejs-poolController
38 stars 20 forks source link

Docker Request: Set config via Variables #36

Closed noctividus closed 2 years ago

noctividus commented 3 years ago

Not sure if this is the right place, but it would be nice if the docker images allowed you to set some things via variables.

I know this stuff gets saved in a config file if you use volumes, but it would be a nice feature to be able to set the server IP and port from a docker variable.

On the server docker image, it would be nice to be able to set the IP and port of the network RS485 bridge, or the name of the device (USB0, USB1, etc.)

rstrouse commented 3 years ago

Not familiar with docker but the config.json will not be overwritten if you include it your package.

noctividus commented 3 years ago

I guess this is the wrong place then! This stuff also being distributed via docker containers-

https://github.com/tagyoureit/nodejs-poolController/wiki/Docker

rstrouse commented 3 years ago

There were contributors to the nodejs-poolController repo that created the docker file (@wurmr @andylippitt @emes) you can try to raise them directly in the gitter or mention them in an issue on the nodejs-poolController repo.

emes commented 2 years ago

This has been added now. I will update the wiki shortly.

you can set these env vars for njsPC

POOL_RS485_PORT POOL_NET_CONNECT POOL_NET_HOST POOL_NET_PORT

and these for dashPanel:

POOL_HTTP_IP POOL_HTTP_PORT

and they'll seed config. Useful for what @noctividus described.

rstrouse commented 2 years ago

I am closing this as I believe @emes got it all squared away.