-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVagrantfile
34 lines (27 loc) · 1016 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
27
28
29
30
31
32
33
34
require 'rbconfig'
is_windows = (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
Vagrant.configure("2") do |config|
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.ignore_private_ip = false
config.hostmanager.include_offline = true
if is_windows
config.vm.synced_folder ".", "/lara", type: "smb"
else
config.vm.synced_folder ".", "/lara", type: "rsync", rsync__exclude: [".git/", "log", "tmp"]
end
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
end
config.vm.box = "ubuntu/trusty64"
config.vm.define 'default' do |node|
config.vm.provision :docker
# config.vm.provision :docker_compose, run: "always"
# To rebuild the containers each time:
config.vm.provision :docker_compose, rebuild: true, run: "always"
config.vm.network "private_network", ip: "10.10.10.10"
config.vm.hostname = 'lara'
config.hostmanager.aliases = %w(hello.lara app.lara web.lara authoring.lara)
end
end