Vagrant Files

Apache Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :
 
Vagrant.configure("2") do |config|
  config.vm.box = "hashicorp/bionic64"
 
  config.vm.provider "virtualbox" do |vb|
    # Display the VirtualBox GUI when booting the machine
    vb.gui = true
    vb.memory = 2048
    vb.cpus = 2
  end
 
  config.vm.network "forwarded_port", guest: 80, host: 8080
 
  config.vm.synced_folder ".",
    "/var/www/html",
    :nfs => { # works only on linux/macos
      :mount_options=> ["dmode=777", "fmode=666"]
    }
 
  config.vm.provision "shell", path: "bootstrap.sh"
 
  config.vm.provision "shell", inline: <<-SHELL
    apt-get update
    apt-get install -y apache2
  SHELL
 
end