tgdante2 icon indicating copy to clipboard operation
tgdante2 copied to clipboard

How can I avoid using host network mode and just bind a ports?

Open DeadLemon opened this issue 6 years ago • 2 comments

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.

DeadLemon avatar Apr 17 '18 11:04 DeadLemon

just need to fix dante.conf to user PORT variable somehow

DeadLemon avatar Apr 17 '18 23:04 DeadLemon

Port mapping is incompatible with network_mode: host

makaronn avatar Apr 24 '18 11:04 makaronn