Created
February 11, 2015 20:48
-
-
Save jonasporto/4aca9f5c3b19800e2200 to your computer and use it in GitHub Desktop.
Multiplas maquinas com diferentes ips
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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "512"] | |
end | |
config.vm.define :apache do |a_config| | |
a_config.vm.box = "ubuntu-i386" | |
a_config.vm.hostname = "apache" | |
a_config.vm.network :private_network, :ip => "192.168.29.10" | |
a_config.vm.network "forwarded_port", guest:80, host:8080 | |
end | |
config.vm.define :nginx do |n_config| | |
n_config.vm.box = "ubuntu-i386" | |
n_config.vm.hostname = "nginx" | |
n_config.vm.network :private_network, :ip => "192.168.29.11" | |
n_config.vm.network "forwarded_port", guest:80, host:8081 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment