chorus icon indicating copy to clipboard operation
chorus copied to clipboard

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

Open epugh opened this issue 3 years ago • 3 comments

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 avatar Jul 29 '21 19:07 epugh

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 avatar Jul 29 '21 19:07 epugh

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.

  • docker-compose port solr1 8983
  • https://docs.docker.com/compose/reference/port/

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

risdenk avatar Jan 24 '22 18:01 risdenk

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

epugh avatar May 31 '22 21:05 epugh