# 热爱web团队Docker开发环境 ## 环境情况 环境包括: nginx php-fpm mysql redis mongodb redis php模块包括: bcmath bz2 calendar Core ctype curl date dba dom enchant exif fileinfo filter ftp gd gettext hash iconv imagick intl json libxml mbstring mcrypt memcached mongodb mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline redis Reflection session shmop SimpleXML sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter Zend OPcache zip zlib ## 环境启动 ```shell $ docker-compose up -d ``` 注:MacOs 如出现 not shared from OS X and are not known to Docker,请参考[https://blog.csdn.net/ittubaozi/article/details/89811847](http://) ## 环境停止 ```shell $ docker-compose down ``` ## 重要文件文件 ### mysql ```shell ./mysql/etc/my.cnf # MySQL配置文件 ./mysql/nginx/log # MySQL日志 ``` ### nginx ```shell ./nginx/conf/nginx.conf # nginx配置文件 ./nginx/conf/vhost # nginx vhost目录 ./nginx/logs # nginx 日志 ./nginx/www # nginx 代码目录 ``` ### php-fpm ```shell ./php-fpm/etc/php.ini # php配置文件 ``` ## 如需更多个性配置 > 请自信修改docker-compose.yml