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)
- Host: GitHub
- URL: https://github.com/migueabellan/docker-php
- Owner: migueabellan
- License: mit
- Created: 2018-08-09T10:44:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-31T09:36:40.000Z (almost 8 years ago)
- Last Synced: 2026-01-03T17:13:49.537Z (6 months ago)
- Topics: docker, docker-compose, mysql, nginx, php7-fpm
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker NGINX PHP72 MySQL
> How to run php project with Docker CE
[](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
```