-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
37 lines (30 loc) · 1.19 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.provider :virtualbox do |v|
v.memory = 1024
end
config.vm.define "master" do |master|
master.vm.hostname = "master-server"
master.vm.network :private_network, ip: "192.168.10.10"
end
config.vm.define "nginx" do |nginx|
nginx.vm.hostname = "nginx"
nginx.vm.network :private_network, ip: "192.168.10.11"
nginx.vm.network "forwarded_port", guest:80,host:9996
end
config.vm.define "node" do |node|
node.vm.hostname = "nodeapp"
node.vm.network :private_network, ip: "192.168.10.12"
node.vm.network "forwarded_port", guest:80,host:9997
end
config.vm.define "angular" do |angular|
angular.vm.hostname = "angularapp"
angular.vm.network :private_network, ip: "192.168.10.13"
angular.vm.network "forwarded_port", guest:80,host:9998
end
config.vm.define "mongo" do |mongo|
mongo.vm.hostname = "mongodb"
mongo.vm.network :private_network, ip: "192.168.10.14"
mongo.vm.network "forwarded_port", guest:27017,host:9999
end
end