-
Notifications
You must be signed in to change notification settings - Fork 46
/
Vagrantfile
executable file
·24 lines (22 loc) · 989 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "trusty64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network :forwarded_port, guest: 80, host: 8080, auto_correct: true
config.vm.network :forwarded_port, guest: 22, host: 6174
config.vm.network :forwarded_port, guest: 8000, host: 8000, auto_correct:
true
config.vm.network :forwarded_port, guest: 27017, host: 27017, auto_correct:
true
config.vm.network :forwarded_port, guest: 1337, host: 1337, auto_correct:
true
config.vm.synced_folder "api", "/home/vagrant/api"
config.vm.synced_folder "web", "/home/vagrant/web"
config.vm.synced_folder "scripts", "/home/vagrant/scripts"
config.vm.provision :shell, :path => "scripts/vagrant_setup.sh"
config.ssh.forward_agent = true
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
end