Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/constlab/docker

PHP development environment for Docker
https://github.com/constlab/docker

docker docker-php docker-php-fpm docker-wordpress

Last synced: about 11 hours ago
JSON representation

PHP development environment for Docker

Awesome Lists containing this project

README

        

# docker php

PHP development environment for Docker.

* PHP 7.1
* Nginx
* php-fpm
* MySql
* Composer
* WP CLI
* Nodejs (optionnal)
* Gulp CLI (optionnal)
* Envoy (optionnal)

## Install

* Clone this repo in your project: `git clone https://github.com/constlab/docker.git .docker` or add as submodule `git submodule add https://github.com/constlab/docker.git .docker`
* Copy cmd file in current folder: `cp .docker/docker .`
* In project folder must be env file with params: APP_NAME, DB_DATABASE, DB_USERNAME, DB_PASSWORD, DB_HOST, DB_PREFIX
* If env file does not exists, copy it: `cp .docker/env.example .env`
* Let's start. Run `./docker`. Start params can see in `./docker` file
* Open browser with address: `http://localhost:8080`

## Commands

* `./docker` – start containers
* `./docker stop`
* `./docker restart` – stop and start containers
* `./docker exec` – run command in php container. Example: `./docker exec composer update`
* `./docker bash` – get a shell docker container
* `./docker build`
* `./docker rebuild`
* `./docker wp` – get wp cli