Skip to content

Instantly share code, notes, and snippets.

@eksahin
Last active December 19, 2016 08:44
Show Gist options
  • Save eksahin/b3ca0463288167d156a63b19af647e20 to your computer and use it in GitHub Desktop.
Save eksahin/b3ca0463288167d156a63b19af647e20 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "elao/symfony-standard-debian"
config.vm.hostname = "local"
config.vm.synced_folder "../www/", '/var/www', type: "rsync", rsync__exclude: ".git/",
:nfs => true,
:mount_options => ['actimeo=2']
config.vm.network "private_network", ip: "192.168.56.101", guest: 80,
auto_config: true
config.vm.network "public_network", ip: "192.168.2.121", guest: 80, bridge: "en1: Wi-Fi (AirPort)",
auto_config: true
config.vm.network :forwarded_port, guest: 9200, host: 9200
config.vm.boot_timeout = 300
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
# vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = "2024"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment