This repository has been archived by the owner on Dec 26, 2022. It is now read-only.
forked from flef/Incipio
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Vagrantfile
43 lines (36 loc) · 1.79 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
37
38
39
40
41
42
43
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version.
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Box configuration
config.vm.box = "jessie"
config.vm.box_url = "http://static.gender-api.com/debian-8-jessie-rc2-x64-slim.box"
config.vm.box_check_update = true
# Use Ansible as its provisioner
config.vm.provision :ansible do |ansible|
ansible.inventory_path = "ansible/inventory/hosts"
ansible.limit = "dev"
ansible.playbook = "ansible/playbook.yml"
# Enable this line if you wish to debug the provision
#ansible.verbose = "vvvv"
end
# 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 # Web server
config.vm.network "forwarded_port", guest: 9000, host: 9000 # Mkdocs web server
config.vm.network "forwarded_port", guest: 3306, host: 3307 # MySQL server
config.vm.network "forwarded_port", guest: 6379, host: 6379 # redis server
# 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 ".", "/var/www/symfony-app", group: "www-data", mount_options: ["dmode=775,fmode=664"]
# Disable the default /vagrant share can be done as follows:
config.vm.synced_folder ".", "/vagrant", disabled: true
# Provider-specific configuration
config.vm.provider "virtualbox" do |vb|
vb.memory = 2048 # Upgrade memory for package managers
end
end