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

Prefix all public facing ports in Chorus with something like 10, so 108983, 103000, 108080 etc #59

Open
epugh opened this issue Jul 29, 2021 · 3 comments

Comments

@epugh
Copy link
Collaborator

epugh commented Jul 29, 2021

Often I'll fire up Chorus and discover that port 3000 was already taken by my Quepid. Or a Solr is running on 8983 already...

can we prefix everything with a number like 10, and then keep them on the well known port number.

@epugh
Copy link
Collaborator Author

epugh commented Jul 29, 2021

Ugh, why is the limit 65535?

8983 --> 108983 won't work.

So, how about prefixing with a 1... So 8983 --> 18983? 3000 becomes 13000?

@epugh epugh changed the title Prefix all ports in Chorus with something like 10, so 108983, 103000, 108080 etc Prefix all public facing ports in Chorus with something like 10, so 108983, 103000, 108080 etc Jul 29, 2021
@risdenk
Copy link
Contributor

risdenk commented Jan 24, 2022

Another option here is to not have so many public facing ports exposed or have something like Traefik or Nginx front these containers to expose with hostnames (this gets ugly since you need /etc/hosts or something to make it truely work).

The first option would automatically pick an open port and then you could ask docker-compose what port that was opened on. This avoids a whole bunch of hardcoding. Its harder to use though from a "learning" standpoint.

The other example is https://doc.traefik.io/traefik/user-guides/docker-compose/basic-example/, but requires domain name :(

@epugh
Copy link
Collaborator Author

epugh commented May 31, 2022

sigh, the darn port 7000 getting used by Apple is an example of why this might have been nice.

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