Last active
August 29, 2015 14:05
-
-
Save linki/0f4895c33d129cc80302 to your computer and use it in GitHub Desktop.
This file contains hidden or 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| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "99designs/ubuntu-docker" | |
# Create a private network, which allows host-only access to the machine | |
# using a specific IP. | |
config.vm.network "private_network", ip: "192.168.8.8" | |
# Forward the usual dockers ports to the hostmachine | |
(49000..49900).each do |port| | |
config.vm.network "forwarded_port", guest: port, host: port, protocol: 'tcp' | |
config.vm.network "forwarded_port", guest: port, host: port, protocol: 'udp' | |
end | |
# Symlink local folders to the vm | |
# config.vm.synced_folder "~/code/", "/code", create: true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
export DOCKER_HOST=tcp://192.168.8.8:2375