-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
36 lines (28 loc) · 1.12 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
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
# global configuration
VAGRANTFILE_API_VERSION = "2"
VAGRANT_BOX = "ubuntu/trusty64"
VAGRANT_BOX_MEMORY = 2048
VIRTUAL_BOX_NAME = "zraydoctrine2demo"
# only change these lines if you know what you do
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = VAGRANT_BOX
config.vm.hostname = VIRTUAL_BOX_NAME + ".dev"
# configure vhost ports, more vhosts => more port forwarding definitions
config.vm.network :forwarded_port, guest: 8080, host: 8080
config.vm.network :forwarded_port, guest: 10081, host: 10081
config.vm.synced_folder ".", "/vagrant"
# forward ssh requests for public keys
config.ssh.forward_agent = true
# ensure box name
config.vm.define VIRTUAL_BOX_NAME do |t|
end
# configure virtual box
config.vm.provider :virtualbox do |vb|
vb.name = VIRTUAL_BOX_NAME
vb.customize ["modifyvm", :id, "--memory", VAGRANT_BOX_MEMORY]
end
config.vm.provision :docker
config.vm.provision :docker_compose, compose_version: "1.8.1", yml: "/vagrant/docker-compose.yml", rebuild: false, run: "always"
end