yuelailll / php-environment-with-docker

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Shell 50.9%Language:PHP 49.1%