m4rc1no5 / php-docker-skeleton

Dockerized PHP enviroment. This repository is a docker boilerplate for web apps written in PHP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker PHP skeleton

npm npm npm npm npm npm

Maintainer: Michal Kruczek

This stack uses: nginx (lastest), php-fpm (5.6, 7.0), mysql (5.7).

This skeleton can be used to developing app locally or to running tests in Jenkins etc.

  1. Build docker images running ./docker.sh build-images. Image versioning is based on version from composer.json
  2. Running local dev env: ./docker.sh run Domain is set based on .project_name, by default http://demo.dev:8000
  3. Running tests on PHP 7.1: ./docker.sh build
  4. Running tests on PHP 7.1 with CodeCoverage(include xdebug): ./docker.sh build-coverage
  5. Running tests on PHP 7.0: ./docker.sh build-7
  6. Running tests on PHP 7.0 with CodeCoverage(include xdebug): ./docker.sh build-coverage-7
  7. Running tests on PHP 5.6: ./docker.sh build-56

Enjoy!

Authors

Contributors

Contributing

Please read more about Github Flow.

About

Dockerized PHP enviroment. This repository is a docker boilerplate for web apps written in PHP.

License:MIT License


Languages

Language:Shell 98.0%Language:PHP 2.0%