Created
January 19, 2015 20:37
-
-
Save breim/9237206ff48fede52577 to your computer and use it in GitHub Desktop.
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 : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "lucid32" | |
#config.vm.synced_folder ".", "/Projects", id: "vagrant-root" | |
config.vm.synced_folder "~/", "/Repos", id: "vagrant-repos" | |
config.vm.network :forwarded_port, guest: 3000, host: 3000 # rails | |
config.vm.network :forwarded_port, guest: 3200, host: 3200 | |
config.vm.network :forwarded_port, guest: 9292, host: 9292 # rack | |
config.vm.network :forwarded_port, guest: 4567, host: 4567 # sinatra | |
config.vm.network :forwarded_port, guest: 1080, host: 1080 # mailcatcher | |
config.vm.network :forwarded_port, guest: 8888, host: 8888 # jasmine | |
config.vm.network :forwarded_port, guest: 3306, host: 3306 # mysql | |
config.vm.network :forwarded_port, guest: 1234, host: 1234 # node | |
config.vm.network :forwarded_port, guest: 5432, host: 5432 # postgresql | |
config.vm.network :forwarded_port, guest: 6379, host: 6379 # redis | |
config.vm.network :forwarded_port, guest: 9200, host: 9200 # elasticsearch | |
config.vm.network :private_network, ip: "192.168.2.2" | |
# The url from where the 'config.vm.box' box will be fetched if it | |
# doesn't already exist on the user's system. | |
# config.vm.box_url = "http://domain.com/path/to/above.box" | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine. In the example below, | |
# accessing "localhost:8080" will access port 80 on the guest machine. | |
# config.vm.network :forwarded_port, guest: 80, host: 8080 | |
# Create a private network, which allows host-only access to the machine | |
# using a specific IP. | |
# config.vm.network :private_network, ip: "192.168.33.10" | |
config.vm.provider :virtualbox do |vb| | |
# # Don't boot with headless mode | |
# vb.gui = true | |
# | |
# # Use VBoxManage to customize the VM. For example to change memory: | |
vb.customize ["modifyvm", :id, "--memory", "1024"] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment