Created
June 18, 2018 12:16
-
-
Save aduzsardi/946b4c83e32e29f37eabe4fefaa354df to your computer and use it in GitHub Desktop.
multibox 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
Vagrant.configure(2) do |config| | |
config.ssh.insert_key = false | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "1024"] | |
end | |
config.vm.define "myapp1" do |app| | |
app.vm.hostname = "myapp1.dev" | |
app.vm.box = "ubuntu/xenial64" | |
app.vm.network :private_network, ip: "192.168.99.10" | |
end | |
config.vm.define "myapp2" do |app| | |
app.vm.hostname = "myapp2.dev" | |
app.vm.box = "ubuntu/xenial64" | |
app.vm.network :private_network, ip: "192.168.99.11" | |
end | |
config.vm.define "db" do |db| | |
app.vm.hostname = "db.dev" | |
app.vm.box = "ubuntu/xenial64" | |
app.vm.network :private_network, ip: "192.168.99.12" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment