marcoguido / php-docker-boilerplate

A boilerplate to be used to start or dockerize various PHP projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NOTE

This repository is deprecated in favor of my new project: Pocker. Pocker offers the same features and much more, with improved stability and an easier setup.
Give it a try 😉


Dockerized Project Boilerplate

This repository contains a basic scaffolding to be used to setup a PHP (>= 7.0) project and can be used on Linux, MacOS and Windows. For the latter we're supporting only Windows versions with virtualization-enabled capabilities (e.g. Windows Pro and Education)

Most of the aspects of the configuration can be tuned via a .env file to be created in the setup phase.

Contents

This configuration comprehends:

  • Docker-sync support

  • 2 web servers (apache and nginx)

  • 2 DBMSs (mysql, postgresql)

  • redis for cache management

  • minio as storage layer (exposes a set of APIs compatible with Amazon S3)

  • A php container: this is the main docker container and the one to be used to compile and run commands against the project you want to build (you are most likely to always run a bash session inside it).

Table of contents

Sections
Usage prerequisites
Use cases
Setup
Extras
Notes

About

A boilerplate to be used to start or dockerize various PHP projects.


Languages

Language:Dockerfile 85.5%Language:Shell 14.5%