Created
December 1, 2017 15:35
-
-
Save gigo6000/a58141c57a1a2516c5ae33f6b38e62d8 to your computer and use it in GitHub Desktop.
Vagrantfile
This file contains hidden or 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
Vagrant.configure('2') do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = 'precise64' | |
config.vm.box_url = 'http://files.vagrantup.com/precise64.box' | |
# nfs - Important: this helps to reduce the page load time. It should be enabled by default even if it's ignored for Windows users | |
config.vm.synced_folder '.', '/vagrant', type: 'nfs' | |
config.vm.network :private_network, ip: '192.168.50.4' | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "2048"] | |
vb.customize ["modifyvm", :id, "--cpus", "2"] | |
end | |
# network | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment