Last active
March 20, 2017 20:20
-
-
Save kerasai/364d465c1058f06d0e64e6b92f29491a to your computer and use it in GitHub Desktop.
Kerasai LAMP Vagrantfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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