Created
February 23, 2020 02:26
-
-
Save harshitsinghai77/e2ae24dd882683350160a5c9f0a9e3ac to your computer and use it in GitHub Desktop.
Vagrant Discourse Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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. | |
config.vm.synced_folder ".", "/vagrant", owner: "vagrant", mount_options: ["dmode=777"] | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "4096" | |
vb.cpus = 2 | |
end | |
# Every Vagrant development environment requires a box. You can search for | |
# boxes at https://vagrantcloud.com/search. | |
config.vm.box = "bento/ubuntu-19.10" | |
config.vm.network :forwarded_port, host: 9292, guest: 9292 | |
config.vm.network "public_network", ip: "10.10.81.36" | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update | |
apt-get install -y apache2 | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment