Any ports used in docker will be open on your computer and accessible to any device in your network.
However, to open up a port to the internet, you’d have to do port-forwarding on your router. If you haven’t done that, any incoming connections will just be dropped at the router-level.
IronKrill@lemmy.ca 1 year ago
I’m using Gluetun via Docker Compose as well right now and can happily say all the ports exposed via the
ports:setting are local network only. I could port forward them via the router probably (haven’t tried) but I only use them for access via LAN. To expose ports over the VPN connection you use theFIREWALL_VPN_INPUT_PORTSenvironment variable. A stripped version of my current compose (example port numbers, not real) with LAN access to6000and WAN access to1234and5678: