2015-04-12 03:22:15 +02:00
|
|
|
Vagrant.configure("2") do |config|
|
2015-09-13 02:38:15 +02:00
|
|
|
|
|
|
|
config.hostmanager.enabled = true
|
|
|
|
config.hostmanager.manage_host = true
|
|
|
|
|
2016-03-16 06:30:38 +01:00
|
|
|
config.vm.box = 'laravel/homestead'
|
2021-01-02 07:29:36 +01:00
|
|
|
config.vm.box_version = '10.1.1'
|
2016-02-03 03:39:09 +01:00
|
|
|
|
2015-05-26 07:23:15 +02:00
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
|
|
v.cpus = 4
|
2015-12-29 16:02:23 +01:00
|
|
|
v.memory = 1024
|
2015-05-26 07:23:15 +02:00
|
|
|
end
|
2015-04-12 03:22:15 +02:00
|
|
|
|
2015-09-13 02:38:15 +02:00
|
|
|
config.vm.define 'default' do |node|
|
2015-09-20 05:17:27 +02:00
|
|
|
node.vm.hostname = 'ponyfm-dev.poni'
|
2015-09-13 02:38:15 +02:00
|
|
|
node.vm.network :private_network, ip: "192.168.33.11"
|
2016-06-08 18:34:27 +02:00
|
|
|
node.vm.network "forwarded_port", guest: 80, host: 8080
|
2016-11-28 01:18:31 +01:00
|
|
|
node.vm.network "forwarded_port", guest: 5432, host: 5432
|
2015-09-20 05:17:27 +02:00
|
|
|
node.hostmanager.aliases = %w(api.ponyfm-dev.poni)
|
2015-09-13 02:38:15 +02:00
|
|
|
end
|
|
|
|
|
2015-05-26 07:23:15 +02:00
|
|
|
config.vm.synced_folder ".", "/vagrant", type: "nfs"
|
2016-02-03 03:39:09 +01:00
|
|
|
config.bindfs.bind_folder "/vagrant", "/vagrant"
|
2015-05-26 07:23:15 +02:00
|
|
|
|
|
|
|
config.vm.provision "shell", path: "vagrant/install.sh"
|
2015-12-27 13:36:23 +01:00
|
|
|
config.vm.provision "shell", path: "vagrant/copy-and-restart-configs.sh", run: "always"
|
2015-05-02 11:48:57 +02:00
|
|
|
end
|