An open API service indexing awesome lists of open source software.

https://github.com/migueabellan/docker-php

How to run php project with Docker CE (NGINX PHP72 MySQL)
https://github.com/migueabellan/docker-php

docker docker-compose mysql nginx php7-fpm

Last synced: 3 months ago
JSON representation

How to run php project with Docker CE (NGINX PHP72 MySQL)

Awesome Lists containing this project

README

          

# Docker NGINX PHP72 MySQL

> How to run php project with Docker CE

[![Build Status](https://travis-ci.org/migueabellan/docker-php.svg?branch=master)](https://travis-ci.org/migueabellan/docker-php)

### Prerequisites

Docker installation is required, see the [official installation docs](https://docs.docker.com/install/).

### Download and install

Donwload using git

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

Create a `.env`

```sh
$ cp .env.dist .env
```

Build and run container

```sh
$ docker-compose build
$ docker-compose up -d
```

Install with `composer`

```sh
$ docker-compose run phpfpm composer install
```

Access project

```sh
http://localhost:1180
```

Units tests

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