Skip to content
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

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

Open
DeadLemon opened this issue Apr 17, 2018 · 2 comments
Open

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

DeadLemon opened this issue Apr 17, 2018 · 2 comments

Comments

@DeadLemon
Copy link

DeadLemon commented Apr 17, 2018

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
Copy link
Author

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

@makaronn
Copy link

Port mapping is incompatible with network_mode: host

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants