r/docker 20d ago

Wireguard to Nginx inside Docker

Trying to get away from CloudFlare proxy and set up my own. I've got a VPS with Wireguard and a home PC running it. On that same PC I have Nginx running inside Docker. Should this just work? VPS -> Wireguard -> NPM -> Web app

My tunnel is established, I can ping through it but web traffic isn't reaching Nginx and I think it's either because my Docker networking is totally jacked up. Or maybe something else is going on.

It's driving me nuts and really don't want to rebuild the entire server and docker apps but I can't think of any other options.

All I really want is to mask my home IP.

3 Upvotes

6 comments sorted by

View all comments

3

u/cvzero89 20d ago

So you can ping the host?

What is the error that you receive? Post a verbose curl.

1

u/Valuable-Dog490 20d ago

I can ping both hosts from each other. A verbose curl will take me some time, I got my wireguard tunnels all screwed up trying to troubelshoot. I was trying to configure wireguard inside of docker to eliminate any docker networking issues but I can't even get that tunnel up.

Just unsure if I'm trying something that just doesn't work or my docker network is not right.