benjamin-wilson / public-pool-ui

29 stars 29 forks source link

[docker] How to configure API_URL and STRATUM_URL from docker environment? #18

Open aphex3k opened 2 hours ago

aphex3k commented 2 hours ago

There is no documentation available when running from docker how to change the URLs if they do not run on default values.

For example:

Changing the STRATUM_PORT from 2018 to 9018 and/or API_PORT from 2019 to 9019 will run public-pool correctly, but public-pool-ui will not connect

aphex3k commented 2 hours ago

I just noticed this configuration file: https://github.com/benjamin-wilson/public-pool-ui/blob/master/src/environments/environment.prod.ts

Does this mean that the pre-built docker file will not work with self-hosted pools? That would be a big letdown.

If I provide the following in my .env file for docker, it will be ignored:

API_URL=https://my.pool:9019
STRATUM_URL=my.pool:9018