Awesome Open Source
Awesome Open Source
Sponsorship

PHP Docker Boilerplate

latest v5.2.0-beta3 License MIT

This is an easy customizable docker boilerplate for any PHP-based projects like Symfony Framework, CakePHP, Yii and many other frameworks or applications.

Supports:

  • Nginx or Apache HTTPd
  • PHP-FPM (with Xdebug)
  • MySQL, MariaDB or PerconaDB
  • PostgreSQL
  • Solr (disabled, without configuration)
  • Elasticsearch (disabled, without configuration)
  • Redis (disabled)
  • Memcached (disabled)
  • Mailcatcher (if no mail sandbox is used, eg. Vagrant Development VM)
  • FTP server (vsftpd)
  • PhpMyAdmin
  • maybe more later...

This Docker boilerplate is based on the Docker best practices and doesn't use too much magic. Configuration of each docker container is available in the docker/ directory - feel free to customize.

This boilerplate can also be used for any other web project. Just customize the makefile for your needs.

Warning: There may be issues when using it in production.

If you have any success stories please contact me.

You can use my Vagrant Development VM for this Docker boilerplate, e.g. for easily creating new boilerplate installations with short shell command: ct docker:create directory.

Table of contents

Credits

This Docker layout is based on https://github.com/denderello/symfony-docker-example/

Thanks for your support, ideas and issues.

Thanks to cron IT GmbH for inspiration.

Did I forget anyone? Send me a tweet or create pull request!


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (66,042)Β 
php (15,569)Β 
docker (2,535)Β 
mysql (922)Β 
boilerplate (558)Β 
elasticsearch (507)Β 
nginx (444)Β 
symfony (443)Β 
ftp (78)Β 
solr (73)Β 
php-fpm (41)Β 
apache2 (29)Β 

Find Open Source By Browsing 7,000 Topics Across 59 Categories