File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,16 @@ Vagrant.configure("2") do |config|
5
5
config . vm . box = "ubuntu/bionic64"
6
6
config . vm . provision "shell" , path : "provision.sh"
7
7
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.
9
10
config . vm . network "forwarded_port" , guest : 3306 , host : 3306
10
11
config . vm . network "forwarded_port" , guest : 50051 , host : 50051
11
12
config . vm . network "forwarded_port" , guest : 8888 , host : 8888
12
13
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
+
13
18
config . vm . provider "virtualbox" do |v |
14
19
v . memory = 16384
15
20
v . cpus = 8
You can’t perform that action at this time.
0 commit comments