This virtual machine has simple and easy settings for configure it
in your web projects.
Stack:
Ubuntu 16.04
Nginx 1.10
PHP 7.1
MySQL 5.7
Redis 3.0
Supervisor 3.3
ElasticSearch 5.5
If those apps installed in your linux, you can clone and run vagrant simple
Clone this project, delete .example from the files name and run vagrant up
Before run vagrant machine you should have to installed
virtualbox: sudo apt-get install virtualbox or here
vagrant: sudo apt-get install vagrant or here
also your system must has vagrant hostmanager:
vagrant plugin install vagrant-hostmanager or here
- Clone project from your system:
git clone https://github.com/sobwoofer/simple-vagrant.git - Go to simple-vagrant folder and rename file
Vagrantfile.exampletoVagrantfileopen it and configure your domens like:
domains = {
example: 'example.test',
example2: 'myDomain.com',
apiDomain: 'api'
}
and for finishing visualisation you can add your domains varaibles (not required) for example:
config.vm.post_up_message = "Example URL: http://#{domains[:example]}\n} Second Domain: http://#{domains[:example2]}\n"
-
Go to vagrant/config folder and rename file
vagrant-local.yml.exampletovagrant-local.ymlAlso you can change machine name, IP, CPU cores, and RAM memory in this file. recommended insert into this file your personal github token. -
Go to vagrant/nginx folder and rename
app.conf.exampletoapp.confYou also can add nginx server configurations sections for your new domains for example:
server{
...
}
server{
...
}