-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
31 lines (26 loc) · 1.09 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# https://docs.vagrantup.com.
Vagrant.configure("2") do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.define "inf" do |inf|
inf.vm.provider :docker do |d|
d.build_dir = "."
d.remains_running = true
d.has_ssh = true
d.name = "inf"
end
end
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.network "forwarded_port", guest: 9944, host: 9944
config.vm.hostname = "inf"
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config.vm.synced_folder "./.dev", "/home/vagrant/data/"
end