Skip to content

PHP Docker Boilerplate for Symfony or any other PHP Project (NGINX, Apache HTTPd, PHP-FPM, MySQL, Solr, Elasticsearch, Redis, FTP)

License

Notifications You must be signed in to change notification settings

pborreli/php-docker-boilerplate

 
 

Repository files navigation

Dockerized PHP web project boilerplate

latest v4.0.0 License MIT Average time to resolve an issue Percentage of issues still open

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)
  • maybe more later...

This Docker boilerplate based on the best practises and don'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 eg. Symfony, CakePHP, Magento and more. 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, eg. for easy creating new boilerplate installations with an easy 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 support, ideas and issues ...

Thanks to cron IT GmbH for inspiration.

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

About

PHP Docker Boilerplate for Symfony or any other PHP Project (NGINX, Apache HTTPd, PHP-FPM, MySQL, Solr, Elasticsearch, Redis, FTP)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 45.0%
  • JavaScript 44.7%
  • CSS 6.6%
  • Makefile 3.0%
  • HTML 0.7%