Closed amosbird closed 6 years ago
What's the problem? the entry in /etc/hosts
are just here so that your computer solves kafka1
to localhost hence find the docker container
@simplesteph Oh, I thought the host list also acts as a config for restricting network accessibilities. Does that make sense?
no it doesn't restrict network capabilities, it just redirects DNS names to IPs:https://askubuntu.com/questions/183176/what-is-the-use-of-etc-hosts
Your service can be accessible from the outside if the firewall ports are opened. Remember the goal of this is to setup something on your local laptop, nothing more. Happy hacking!
Hmm, is there a way to run zk-single-kafka-single.yml
without modifying /etc/hosts
?
Hi, I have
/etc/hosts
like thisHowever,
docker-compose -f full-stack.yml up
still starts all services listening to0.0.0.0
.