-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathvagrantfile
More file actions
executable file
·23 lines (16 loc) · 791 Bytes
/
Copy pathvagrantfile
File metadata and controls
executable file
·23 lines (16 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- mode: ruby -*-
# vi: set ft=ruby :
required_plugins = %w( vagrant-fsnotify )
required_plugins.each do |plugin|
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
end
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.network "private_network", ip: "192.168.20.20"
config.vm.hostname = "react-fullstack-docker"
# NFS mount the shared folder
config.vm.synced_folder ".", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=666"] }
# Only uncomment the below if NFS does not work for you above (be sure to comment out above line also)
#config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
config.vm.provision :shell, :path => "provision.sh"
end