phpdock aims to simplify the process of creating a development environment.
Usage Overview:
-
Clone the repository:
git clone https://github.com/chinayin/phpdock.git
-
Enter the directory:
cp .env.example .env
-
Run these containers:
docker-compose up -d nginx memcached redis
-
Open your browser and visit localhost.
Simplify operations with dock.sh:
./dock
Available options:
web Starts docker-sync and runs docker compose for web services.
up [services] Starts docker-sync and runs docker compose.
stop Stops containers and docker-sync.
build [services] Build docker compose.
down Stop and remove containers, networks, images, and volumes and docker-sync.
cli Opens bash on the php-cli with user.
cli72 Opens bash on the php-cli72 with user.
install Installs docker-sync and docker-compose gem on the host machine.
sync Manually triggers the synchronization of files.
clean Removes all files from docker-sync.
- nginx
- php-fpm
- php-cli
- redis
- memcached
- mysql
- mongo
- elasticsearch
- node
- java