{"id":21160002,"url":"https://github.com/holmesian/lnmp","last_synced_at":"2026-05-20T02:51:11.694Z","repository":{"id":92156120,"uuid":"248225144","full_name":"holmesian/lnmp","owner":"holmesian","description":"nginx  php-fpm mysql  docker 开发环境","archived":false,"fork":false,"pushed_at":"2024-06-17T10:40:03.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T09:12:43.738Z","etag":null,"topics":["docker","docker-compose","lnmp"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holmesian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-18T12:26:32.000Z","updated_at":"2024-06-17T10:40:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"82f75801-a64f-4787-bf0a-e3e1fa8afcaf","html_url":"https://github.com/holmesian/lnmp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmesian%2Flnmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmesian%2Flnmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmesian%2Flnmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmesian%2Flnmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holmesian","download_url":"https://codeload.github.com/holmesian/lnmp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243602526,"owners_count":20317659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","lnmp"],"created_at":"2024-11-20T13:01:57.207Z","updated_at":"2026-05-20T02:51:06.666Z","avatar_url":"https://github.com/holmesian.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lnmp\n\nnginx  php7-fpm/php5-fpm  mysql  redis 的 docker 开发环境\n\n![Docker Image CI](https://github.com/holmesian/lnmp/workflows/Docker%20Image%20CI/badge.svg?branch=master)\n\n\n# 使用方法\n\n下载到本地\n\n    git clone https://github.com/holmesian/lnmp.git\n\n    cd lnmp\n\n    cp .env.sample .env\n\n根据实际情况编辑 .env\n\n    # web文件路径\n    WWWROOT=/Users/holmesian/OneDrive/Coding/www\n\n    # log文件路径\n    LOGROOT=/Users/holmesian/Downloads/log\n\n    # WWWROOT读写模式\n    # WWWROOTTYPE=cached #For MAC\n    #For Win\n    WWWROOTTYPE=rw  \n\n    # mysql数据位置\n    MYSQLDATA=/Users/holmesian/Docker/mysql\n\n    # MYSQLDATA读写模式\n    # MYSQLDATATYPE=delegated #For MAC\n    #For Win\n    MYSQLDATATYPE=rw  \n\n    # mysql root密码  默认 123456\n    # MYSQLPASWD={yourpasswd}\n\n\n\n执行 docker-compose  (docker-compose version \u003e= 1.27)\n\n    docker-compose up -d\n    \n\n\n# 备注\n\n    - 默认为 php7.4 ;    docker version \u003e= 19\n    \n    - 将 etc\\nginx 配置文件中，fastcgi_pass php-fpm:9000 修改为 fastcgi_pass php5-fpm:9000 即可使用 php5\n    \n    - php / php5 目录下的 Dockerfile 为镜像配置文件，可酌情修改重新编译。需调试的环境可以选择holmesian/php5-fpm:xdebug  holmesian/php7-fpm:xdebug \n    \n    - etc 目录中为相应的配置文件 （nginx/mysql/php）\n    \n    - docker container 中的网站根目录为 /www \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholmesian%2Flnmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholmesian%2Flnmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholmesian%2Flnmp/lists"}