Skip to content

Instantly share code, notes, and snippets.

@LondonAppDev
Created August 1, 2019 18:55
Show Gist options
  • Save LondonAppDev/b156894a1abab71bb50487a3788dde06 to your computer and use it in GitHub Desktop.
Save LondonAppDev/b156894a1abab71bb50487a3788dde06 to your computer and use it in GitHub Desktop.
Simple NGINX Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = "ubuntu/bionic64"
config.vm.box_version = "~> 20190314.0.0"
config.vm.network "forwarded_port", guest: 80, host: 8000
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get -y install nginx
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment