Skip to content

Why network_mode: host? #691

Answered by Zoey2936
YeapGuy asked this question in Q&A
Mar 9, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote
  • you don't need to enable ipv6 in the docker daemon and in the compose yaml
  • you can connect npmplus to non docker services bound to localhost
  • you don't need to use docker networks to connect npmplus to the container, since you can expose the ports of the container to localhost (example: 127.0.0.1:5678:5678) and the in npmplus just proxy to http(s) 127.0.0.1 and port 5678
  • you can connect to crowdsec without having npmplus and crowdsec in the same docker network
  • crowdsec could also run on host
  • you can't forgett exposing ports
  • you can't forgett exposing 443/udp
  • you can still have protection using ufw for example

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@YeapGuy
Comment options

Answer selected by YeapGuy
Comment options

You must be logged in to vote
2 replies
@Revan335
Comment options

@Zoey2936
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants