forked from openfoodfoundation/ofn-install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
36 lines (26 loc) · 1.21 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 :
# Run the following command to set up this Vagrant box:
# ansible-playbook site.yml --limit=vagrant
# It takes around 20 minutes to complete the first setup/provision/deploy.
# Your new local OFN instance will then be available at: http://localhost:8080
# 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|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
config.vm.provider :virtualbox do |vbox|
config.vm.box = "ubuntu/bionic64"
# Set box memory.
vbox.customize ["modifyvm", :id, "--memory", "2500"]
# Optimise virtualbox.
vbox.customize [ "modifyvm", :id, "--nictype1", "virtio" ]
vbox.customize [ "modifyvm", :id, "--nictype2", "virtio" ]
# VM network config.
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 443, host: 4433
config.vm.network "private_network", ip: "192.168.50.4"
config.ssh.insert_key = false
end
end