Vagrantup.com described the general guideline of port forwarding usage.
I have a question which I think the answer is most likely No. But need 
confirmation from others as I am self-learning.

In a docker compose file, say defining the db service for setting up 
postgres, there are ports statement like

ports:
  - "5432:5432"

Am I correct to say internal ports like this that are need to communicate 
with other services/running containers (that are placed on the same 
network) do not need port forwarding to be define in the vagrantfile (aka, 
in this example, port 5432 need not be forwarded as host OS does not use 
it)?

Correct?

Thanks in advance.
SStone

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/f5a62767-21fb-44ca-90d2-890f9b07b1f9%40googlegroups.com.

Reply via email to