Skip to content

Commit 662f504

Browse files
committed
Update Vagrantfile
1 parent 0ae421c commit 662f504

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Vagrantfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ Vagrant.configure("2") do |config|
55
config.vm.box = "ubuntu/bionic64"
66
config.vm.provision "shell", path: "provision.sh"
77

8-
config.vm.network "forwarded_port", guest: 22, host: 2222
8+
# Don't forward 22. Even if we do so, the exposed port only binds
9+
# to 127.0.0.1, but not 0.0.0.0. Other ports binds to all IPs.
910
config.vm.network "forwarded_port", guest: 3306, host: 3306
1011
config.vm.network "forwarded_port", guest: 50051, host: 50051
1112
config.vm.network "forwarded_port", guest: 8888, host: 8888
1213

14+
# public_network eases debugging -- I can SSH from iMac to the VM
15+
# without the need of forwarding port to the host workstation.
16+
config.vm.network "public_network", ip: "192.168.0.17"
17+
1318
config.vm.provider "virtualbox" do |v|
1419
v.memory = 16384
1520
v.cpus = 8

0 commit comments

Comments
 (0)