dokku / dokku-mongo

a mongo plugin for dokku
MIT License
177 stars 32 forks source link

Expose with a custom domain, not IP address? #152

Closed tiltowait closed 2 years ago

tiltowait commented 2 years ago

Using 1.17.5, is it possible to expose the MongoDB container, but using a domain name instead of an IP address?

josegonzalez commented 2 years ago

Not really. You'd need a TCP proxy for that (with SNI), and Dokku doesn't currently have any built-in facility for that.

What exactly are you trying to do?

tiltowait commented 2 years ago

Just trying to make a nicer connection string. It's not a big deal.

josegonzalez commented 2 years ago

Yeah I dont think thats super possible. We have this service-proxy project for when the service exposes an admin panel, but nothing for TCP unfortunately.

You can use any domain associated with your server's IP address instead of the server's IP. So long as the address is exposed, it should be pretty much the same.

tiltowait commented 2 years ago

I think that will probably work, then. Thanks!