php-environment-with-docker
php-environment-with-docker copied to clipboard
Run php stack(mysql|nignx|redis|swoole ) with docker
trafficstars
docker-compose service:
- php-fpm
- nginx
- mysql
- redis
php extension:
- redis
- swoole
USAGE
Example for using laravel:
step1: install laravel with composer:
./bin/composer create-project --prefer-dist laravel/laravel www
step2: start all docker container with docker-compose (php redis nginx mysql..):
./start
Then enjoy! website: http://ip:8888
For using laravel artisan or other script just following the command:
./bin/php artisan
And you may change your mysql account item in .env file,The mysql account info sees in docker-compose.yaml