Run Microservices Demo with Vagrant

May 23, 2017 ยท View on GitHub

Vagrant can set up virtual machines to install software on them. In this example Vagrant install Docker on the virtual machine and deploys Docker Containers afterwards.

To run the demo:

The result should be:

Additonal hints:

  • Use vagrant halt to shut down the system or vagrant destroy to to delete the VM.
  • If you wantt login to the VM, please use vagrant ssh.
  • If you update the code, you need to rebuild it and then do a new provisioning using vagrant provision . Then the Docker containers in the Vagrant VM will be rebuild.

The following ports will be used on localhost :

  • 18080 for the web application
  • 18761 for Eureka
  • 18989 for the Turbine server