-
Notifications
You must be signed in to change notification settings - Fork 11
/
Vagrantfile
35 lines (26 loc) · 1.26 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrant setup for minecraft servers. For use with virtualbox
# If you plan on making your server accessible on your network, you may need
# to change this device name (works for macbooks)
$BRIDGE_DEVICE = 'en0: Wi-Fi (AirPort)'
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.provision :shell, :path => "minecraft_bootstrap"
# We're going to increase the ram to 1.5GB. This may make it unplayable if
# you're host doesn't have very much memory
config.vm.provider "virtualbox" do |v|
v.memory = 1536
end
# This will make minecraft accessible on localhost port 25565
config.vm.network "forwarded_port", guest: 25565, host: 25565
# If you plan on having others join your minecraft server, comment out the
# line above and uncomment this line, which will give your server a private
# IP address on your local network. You may need to adjust your bridge
# device, which is set at the top of this script.
# See this link for more information:
# http://docs-v1.vagrantup.com/v1/docs/bridged_networking.html
#config.vm.network "public_network", :bridge => "en0: Wi-Fi (AirPort)"
config.vm.hostname = "minecraft.local"
end