How to run 2 separate docker projects concurrently in vagrant

7 views
Skip to first unread message

Sorcerer Stone

unread,
Feb 4, 2020, 2:45:52 PM2/4/20
to Vagrant
My OS is Win10 pro with Hyper-V disabled.
I have 2 docker server open source projects (with different architecture, database, …) each with its own docker compose yml file for configurations & setups.
I created a vagrantfile for each of these projects and able to run each of these projects on its own using the vagrantfile.
Now, I want to run these 2 docker projects concurrently, each with its private network IP address defined in the vagrantfile. More importantly, I want these projects to be able to communicate with each other and able to send files to each other. But I am not sure how I can achieve this.
Here are my questions:
1/ Is it recommend or possible to have the same vagrantfile to initiate and to run 2 compose yml files (one for each project)?
2/ To get these 2 projects (if I can get them up and running simultaneously) to talk to each other, I am planning to assign a different private IP address for each of these projects in the vagrantfile. Is this the right way to do it?
3/ Is what I’d described and what I want to do above fall into the category of multi-machines in Vagrant? If not, can someone please tell me the right keywords so that I can google for answers? Any references to examples (tutorial sites or Youtube) how I can implement this will be of great help.
Thanks in advance.
Sorcerer
Reply all
Reply to author
Forward
0 new messages