tgdante2
tgdante2 copied to clipboard
How can I avoid using host network mode and just bind a ports?
version: '3.3'
services:
...
socks5-proxy-v2:
container_name: socks5-proxy-v2
image: schors/tgdante2
ports:
- 1081:1080
environment:
- USER=user
- PASS=pass
- PORT=1080
restart: unless-stopped
#network_mode: "host"
Seems like container binds to the host's loopback instead of listening to 0.0.0.0, locally everything works fine, firewall allows connection to 1081.
just need to fix dante.conf to user PORT variable somehow
Port mapping is incompatible with network_mode: host