Vagrant box featuring:
- Debian Jessie
- Apache
- MySQL
- PHP 7
- MailHog
- exim4
- development site
- qa site
-
Fork this repository
-
cd
into repository folder -
vagrant up
development:
http://localhost:8080
qa:
http://localhost:8081
mailhog:
http://localhost:8025
-
enjoy.
This VM setup relies on several Ansible roles which can mostly be adjusted via overriding values in VM/host_vars/default. Please visit the respective project for further information:
- geerlingguy/ansible-role-apache
- geerlingguy/ansible-role-exim
- geerlingguy/ansible-role-mailhog
- geerlingguy/ansible-role-mysql
- geerlingguy/ansible-role-php
default: root // root
Set mysql_user
and mysql_pass
in VM/host_vars/default.
default: vm-php
Set mysql_db
in VM/host_vars/default.
Put your sql statements for initial database setup in VM/roles/dev-setup/files/tables.sql.
default: app/src // app/dist
Set http_root_src
and http_root_qa
in VM/host_vars/default.
Site configurations can be adjusted as needed, see VM/roles/dev-setup/files/dev.conf and VM/roles/dev-setup/files/qa.conf.
Ports can be adjusted via VM/roles/dev-setup/files/ports.conf.
Jeff Geerling for his awesome Ansible roles.
Ansible for their awesome configuration management tool.
Hashicorp for their awesome virtualization managment tool.