{"id":20762527,"url":"https://github.com/welllog/docker-lnmp","last_synced_at":"2026-02-27T03:02:23.374Z","repository":{"id":144341300,"uuid":"149260259","full_name":"welllog/docker-lnmp","owner":"welllog","description":null,"archived":false,"fork":false,"pushed_at":"2018-12-27T06:02:58.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T17:47:50.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/welllog.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-09-18T09:11:59.000Z","updated_at":"2019-03-07T03:15:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"15fce8f7-c6fa-439b-a4b8-f93ee1d88ce2","html_url":"https://github.com/welllog/docker-lnmp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/welllog/docker-lnmp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welllog%2Fdocker-lnmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welllog%2Fdocker-lnmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welllog%2Fdocker-lnmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welllog%2Fdocker-lnmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/welllog","download_url":"https://codeload.github.com/welllog/docker-lnmp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welllog%2Fdocker-lnmp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29883111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-17T10:35:54.617Z","updated_at":"2026-02-27T03:02:23.354Z","avatar_url":"https://github.com/welllog.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## nginx+php7.2+mysql+redis镜像\n### 安装和启动\n\u003e1. 安装docker\n\u003e2. 安装docker-compose\n\u003e3. ``git clone https://github.com/welllog/docker-lnmp``\n\u003e4. 为了避免文件夹读写权限问题，将项目文件夹权限给予docker用户\n\u003e5. 进入代码目录``docker-compose up -d``运行服务\n\n#### 项目存放\n\u003e项目可直接放于www目录下，不过为了方便管理，建议单独存放，然后软链至www目录下\n\n#### 服务配置\n\u003e* nginx配置位于``build_nignx/config``,虚拟机配置位于``etc/nginx/conf.d``\n\u003e* php配置位于``build_php/config``\n\u003e* mysql配置位于``build_mysql/config``\n\u003e* redis配置位于``build_redis/config``\n\u003e* 除虚拟机配置外，其它配置改动都需要重新编译镜像，虚拟机配置改动只需重启nginx容器\n\n\n#### 单独运行一个容器\n\u003e如nginx:\n\u003e\n```\ncd build_nginx\nscript/build_nginx.sh\nscript/nginx_docker.sh\n```\n\n\n#### tips\n\u003ephp的扩展依据本人需要，配置得较多。使用者可根据实际情况在``build_php/Dockerfile``中增减扩展，改动后同时需要改动``build_php/config/php.ini``,同上需要重新编译php镜像\n\n### 目录结构\n```\n.\n├── build_mysql\n│   ├── Dockerfile\n│   ├── config\n│   │   └── my.cnf\n│   └── script\n│       ├── build_mysql.sh\n│       └── mysql_docker.sh\n├── build_nginx\n│   ├── Dockerfile\n│   ├── config\n│   │   └── nginx.conf\n│   └── script\n│       ├── build_nginx.sh\n│       └── nginx_docker.sh\n├── build_php\n│   ├── Dockerfile\n│   ├── config\n│   │   ├── php-fpm.conf\n│   │   └── php.ini\n│   └── script\n│       ├── build_php72.sh\n│       └── php72_docker.sh\n├── build_redis\n│   ├── Dockerfile\n│   ├── config\n│   │   └── redis.conf\n│   └── script\n│       ├── build_redis.sh\n│       └── redis_docker.sh\n├── data\n├── docker-compose.yaml\n├── etc\n│   └── nginx\n│       └── conf.d\n│           └── demo.conf\n├── log\n├── readme.md\n├── tree.png\n└── www\n```\n\n18 directories, 21 files\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwelllog%2Fdocker-lnmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwelllog%2Fdocker-lnmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwelllog%2Fdocker-lnmp/lists"}