-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Not able to connect to database #136
Comments
What is the error message? And what's in Caddy's logs? |
This is what mongodb compass(client app) returns, after trying for a while: I've created a docker image with this Dockerfile:
The ports are open:
The caddy server service doesn't show any error regarding the port 27017 or any another error regarding layer4. Don't if I should look in a specific place? |
Enable the |
If nothing shows up even in the debug logs, then there's a good chance the connection isn't reaching Caddy in the first place. 🤔 |
After restarting the caddy server, everything started working. So I guess some sort of caching? |
Interesting. I don't know -- maybe the config you thought was running wasn't actually running / POSTed to the server before the restart? Just a guess. I've done it before. Glad to hear it is working now though! If you can reproduce a bug I'd like to know so we can fix it 😁 |
I'll keep an eye on it. Sorry for the trouble. Out of curiosity, is this module becoming part of the default caddy server? Cause I think it would be a great addition and make caddy more complete. |
(No worries. Definitely let me know, like if a config isn't "sticking" like you'd expect. Thanks!)
I agree with you. Maybe someday, but it's not ready yet. (Some bugs like #72 and #132 definitely need to be figured out first.) |
Hi all,
I've got this config:
And I'm trying to connect to a MongoDB instance running in a docker swarm. That's the 10.0.22.76 ip.
But I've got no success in connecting.
I'm using the module in combination with caddy-docker-proxy and caddy-ext/layer4.
This is the docker part:
Which produces the global json part mentioned above. Am I missing something?
The text was updated successfully, but these errors were encountered: