Pony.fm/Vagrantfile

30 lines
873 B
Ruby
Raw Normal View History

2015-04-12 03:22:15 +02:00
Vagrant.configure("2") do |config|
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
2015-12-20 19:30:51 +01:00
config.vm.box = 'laravel/homestead-7'
config.vm.box_version = '0.2.1'
config.vm.provider "virtualbox" do |v|
v.cpus = 4
2015-06-14 15:24:52 +02:00
v.memory = 2048
end
2015-04-12 03:22:15 +02:00
config.vm.define 'default' do |node|
node.vm.hostname = 'ponyfm-dev.poni'
node.vm.network :private_network, ip: "192.168.33.11"
node.hostmanager.aliases = %w(api.ponyfm-dev.poni)
end
config.vm.synced_folder ".", "/vagrant", type: "nfs"
config.vm.provision "shell", path: "vagrant/install.sh"
config.vm.network "forwarded_port", guest: 3306, host: 33060
2015-11-24 21:29:19 +01:00
config.vm.synced_folder "../pony.fm.files", "/vagrant-files", type: "nfs"
config.bindfs.bind_folder "/vagrant", "/vagrant"
config.vm.provision "shell", path: "vagrant/copy-and-restart-configs.sh", run: "always"
end