-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
32 lines (27 loc) · 1.1 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "DJenkinsDev/VagrantPHP"
config.vm.box_version = "0.5.0"
config.vm.box_check_update = true
config.vm.box_download_insecure = true
# config.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777","fmode=666"]
config.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777","fmode=777"]
# Port Forwarding for:
## NginX
config.vm.network "forwarded_port", guest: 80, host: 8081
## MySQL
# config.vm.network "forwarded_port", guest: 3306, host: 33060
## MongoDB
# config.vm.network "forwarded_port", guest: 27017, host: 20017
## Redis
# config.vm.network "forwarded_port", guest: 6379, host: 63790
# Allow more memory and fix this problem : http://askubuntu.com/questions/238040/how-do-i-fix-name-service-for-vagrant-client
config.vm.provider "virtualbox" do |v|
# v.gui = true
v.memory = 1024
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
end