Skip to content

rootrl/php-environment-with-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Run php stack(mysql|nignx|redis|swoole ) with docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages