Last active
September 12, 2018 14:14
-
-
Save iguoli/818c0d62754a832d83bfdd7fdfe2e638 to your computer and use it in GitHub Desktop.
vagrant setting, Vagrantfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.network "private_network", ip: "192.168.1.10" | |
config.vm.network "private_network", type: "dhcp", name: "VirtualBox Host-Only Ethernet Adapter" | |
config.vm.network "forwarded_port", guest: 80, host: 8080 | |
config.vm.network "forwarded_port", guest: 8088, host: 8088 | |
# open port forwarding that guest machine can access ss on host | |
config.ssh.extra_args = ["R", "1080:localhost:1080"] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment