20 lines
577 B
Ruby
20 lines
577 B
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant.configure("2") do |config|
|
|
config.vm.define "web" do |web|
|
|
web.vm.box = "generic/debian11"
|
|
web.vm.provision "shell", path: "web.sh"
|
|
web.vm.network "private_network", ip: "192.168.56.60"
|
|
web.vm.network "forwarded_port", guest: 80, host: 1234, id: "nginx"
|
|
web.vm.hostname = "web"
|
|
end
|
|
|
|
config.vm.define "db" do |db|
|
|
db.vm.box = "generic/debian11"
|
|
db.vm.provision "shell", path: "db.sh"
|
|
db.vm.network "private_network", ip: "192.168.56.61", hostname: true
|
|
db.vm.hostname = "db"
|
|
end
|
|
end
|