Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/constlab/docker
- Owner: constlab
- License: mit
- Created: 2017-08-07T10:04:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-19T08:39:15.000Z (almost 6 years ago)
- Last Synced: 2024-11-05T13:12:27.851Z (about 2 months ago)
- Topics: docker, docker-php, docker-php-fpm, docker-wordpress
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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