From db88c13519c79f8e630665f178ea85b3a35b6737 Mon Sep 17 00:00:00 2001 From: Niklas Halonen Date: Tue, 5 Sep 2023 13:03:12 +0300 Subject: [PATCH] fix(vagrant): forward more ports used in docker katas --- Vagrantfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 5a297e22..01a5d9ac 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -20,14 +20,13 @@ Vagrant.configure("2") do |config| # config.vm.box_check_update = false # Create a forwarded port mapping which allows access to a specific port - # within the machine from a port on the host machine. In the example below, - # accessing "localhost:8080" will access port 80 on the guest machine. # NOTE: This will enable public access to the opened port - config.vm.network "forwarded_port", guest: 9000, host: 9000 - config.vm.network "forwarded_port", guest: 8080, host: 8080 - config.vm.network "forwarded_port", guest: 3001, host: 3001 + # Forward all ports that are used in training material + for i in 8000..9000 + config.vm.network "forwarded_port", guest: i, host: i + end config.vm.network "forwarded_port", guest: 3000, host: 3000 - config.vm.network "forwarded_port", guest: 8086, host: 8086 + config.vm.network "forwarded_port", guest: 3001, host: 3001 # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine and only allow access