/php-dockerized

Dockerized PHP development stack: Nginx, MySQL, MongoDB, PHP-FPM, HHVM, Memcached, Redis, Elasticsearch and RabbitMQ

Primary LanguageShellMIT LicenseMIT

PHP Dockerized

Dockerized PHP development stack: Nginx, MySQL, MongoDB, MailHog, PHP-FPM, HHVM, Memcached, Redis, Elasticsearch, RabbitMQ and Solr.

Build Status

PHP Dockerized gives you everything you need for developing PHP applications locally. The idea came from the need of having an OS-agnostic and virtualized alternative to the great MNPP stack as regular LAMP stacks quite simply can't keep up with the Nginx + PHP-FPM/HHVM combo in terms of performance. I hope you'll find it as useful an addition to your dev-arsenal as I've found it!

What's Inside

What's Commented

Requirements

Running

Set up a Docker Machine and then run in background (inside you docker path):

$ ./magento start

Enter container

Enter in specific container

$ ./magento enter CONTAINERNAME

Rebuild Container

Stop docker containers then rebuild them

$ ./magento build

To see all options of magento shell script, type:

$ ./magento

Customizations

If you need to customize some data in docker-compose.yml, DO NOT CHANGE the file. Instead, create a new file called docker-compose-custom.yml and add your changes to it. The new file will extend default docker-compose.yml file. (See: https://docs.docker.com/compose/extends/). This way you don't need to merge docker-compose.yml when update your php-dockerized files with last updates.


That's it! You can now access your configured sites via the IP address of the Docker Machine or locally if you're running a Linux flavour and using Docker natively.

License

Copyright © 2016 Tiago Sampaio. Licensed under the terms of the MIT license.

Contributors