-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
26 lines (22 loc) · 922 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Install required plugins
required_plugins = ["vagrant-hostsupdater"]
required_plugins.each do |plugin|
exec "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
end
Vagrant.configure("2") do |config|
config.vm.define "db" do |db|
db.vm.box = "ubuntu/bionic64"
db.vm.network "private_network", ip: "192.168.10.150"
#db.hostsupdater.aliases = ["database.local"]
# there are issues with m
db.vm.provision "shell", path: "environment/db/provision.sh", privileged: false
end
config.vm.define "app" do |app|
app.vm.box = "ubuntu/bionic64"
app.vm.network "private_network", ip: "192.168.10.100"
#app.hostsupdater.aliases = ["development.local"]
app.vm.synced_folder "app", "/home/ubuntu/app"
#app.vm.synced_folder "default", "/etc/nginx/sites-available/default"
app.vm.provision "shell", path: "environment/app/provision.sh", privileged: false
end
end