Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aphex3k opened this issue Sep 24, 2024 · 2 comments

Comments

@aphex3k
Copy link

aphex3k commented Sep 24, 2024

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
Copy link
Author

aphex3k commented Sep 24, 2024

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

@remcoros
Copy link

I solved it like this: https://github.com/remcoros/public-pool-startos/blob/main/Dockerfile#L49
and https://github.com/remcoros/public-pool-startos/blob/main/patches/environment.prod.ts#L2

this only works if you host the stratum backend and UI on the same host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants