This repository has been archived by the owner on May 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Vagrantfile
45 lines (39 loc) · 1.56 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
44
45
# Ensure that vagrant-disksize is installed to proceed (allows resizing the vagrant box disk)
unless Vagrant.has_plugin?("vagrant-disksize")
raise Vagrant::Errors::VagrantError.new, "vagrant-disksize plugin is missing. Please install it using 'vagrant plugin install vagrant-disksize' and retry 'vagrant up'"
end
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
# Extend the disk from the default size
config.disksize.size = '20GB'
# Enable GUI
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
end
# Create a synced folder
config.vm.synced_folder "src/", "/home/vagrant/src"
# Install development environment prerequisites
config.vm.provision :shell, path: "bootstrap.sh"
# Network
config.vm.network "private_network", ip: "192.168.50.10"
# HAProxy
config.vm.network "forwarded_port", guest: 80, host: 80
config.vm.network "forwarded_port", guest: 443, host: 443
config.vm.network "forwarded_port", guest: 8080, host: 8080
# Web App
config.vm.network "forwarded_port", guest: 5000, host: 5000
# Redis
config.vm.network "forwarded_port", guest: 6379, host: 6379
# RabbitMQ
config.vm.network "forwarded_port", guest: 15672, host: 15672
config.vm.network "forwarded_port", guest: 5672, host: 5672
# PostgreSQL
config.vm.network "forwarded_port", guest: 5432, host: 5432
# Elasticsearch
config.vm.network "forwarded_port", guest: 9200, host: 9200
# Kibana
config.vm.network "forwarded_port", guest: 5601, host: 5601
# Flower
config.vm.network "forwarded_port", guest: 5555, host: 5555
end