Skip to content

Instantly share code, notes, and snippets.

@kerasai
Last active March 20, 2017 20:20
Show Gist options
  • Save kerasai/364d465c1058f06d0e64e6b92f29491a to your computer and use it in GitHub Desktop.
Save kerasai/364d465c1058f06d0e64e6b92f29491a to your computer and use it in GitHub Desktop.
Kerasai LAMP Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.manage_guest = true
config.vm.define 'mywebsite' do |box|
box.vm.box = "kerasai/lamp"
box.vm.network :private_network, :auto_network => true
box.vm.hostname = "local.mywebsite.com"
box.hostmanager.aliases = ["alias.mywebsite.com"];
box.vm.synced_folder "./vagrant", "/vagrant", create: true
box.vm.synced_folder "./mywebsite", "/mywebsite-nfs", type: :nfs, create: true
box.bindfs.bind_folder "/mywebsite-nfs", "/var/www/mywebsite", :mirror => "@www-data"
end
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment