Skip to content

Instantly share code, notes, and snippets.

@aduzsardi
Created June 18, 2018 12:16
Show Gist options
  • Save aduzsardi/946b4c83e32e29f37eabe4fefaa354df to your computer and use it in GitHub Desktop.
Save aduzsardi/946b4c83e32e29f37eabe4fefaa354df to your computer and use it in GitHub Desktop.
multibox vagrantfile
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