Skip to content

Instantly share code, notes, and snippets.

@vik407
Created March 28, 2020 15:40
Show Gist options
  • Save vik407/8e9f63f044afee650b56e7ddf9da3789 to your computer and use it in GitHub Desktop.
Save vik407/8e9f63f044afee650b56e7ddf9da3789 to your computer and use it in GitHub Desktop.
Vagrant Box MySQL Ubuntu Bionic
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Ubuntu version 18 LTS
config.vm.box = "ubuntu/bionic64"
# Forward ports
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 3306, host: 33306
# Mapping folders
config.vm.synced_folder ".", "/vagrant_data"
# Enable provisioning with a shell script. Additional provisioners such as
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
# documentation for more information about their specific syntax and use.
config.vm.provision "shell", inline: <<-SHELL
apt-get update
sudo apt install mariadb-server phpmyadmin
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment