项目作者: migueabellan

项目描述 :
How to run php project with Docker CE (NGINX PHP72 MySQL)
高级语言: PHP
项目地址: git://github.com/migueabellan/docker-php.git
创建时间: 2018-08-09T10:44:06Z
项目社区:https://github.com/migueabellan/docker-php

开源协议:MIT License

下载


Docker NGINX PHP72 MySQL

How to run php project with Docker CE

Build Status

Prerequisites

Docker installation is required, see the official installation docs.

Download and install

Donwload using git

  1. $ git clone https://github.com/migueabellan/docker-php.git

Create a .env

  1. $ cp .env.dist .env

Build and run container

  1. $ docker-compose build
  2. $ docker-compose up -d

Install with composer

  1. $ docker-compose run phpfpm composer install

Access project

  1. http://localhost:1180

Units tests

  1. $ docker-compose run phpfpm ./vendor/bin/phpunit ./tests