{"id":18852292,"url":"https://github.com/wisdomfusion/docker-compose-lemp-stack","last_synced_at":"2026-04-14T14:32:07.601Z","repository":{"id":72456353,"uuid":"349390694","full_name":"wisdomfusion/docker-compose-lemp-stack","owner":"wisdomfusion","description":"Docker Compose LEMP Stack, with PHP 7.4, MySQL 8.0, and Redis 6, for PHP applications especially for Laravel projects.","archived":false,"fork":false,"pushed_at":"2021-03-31T01:45:15.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T03:38:38.408Z","etag":null,"topics":["docker","docker-compose","laravel","lemp","lnmp","mysql","php","redis"],"latest_commit_sha":null,"homepage":"","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/wisdomfusion.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":"2021-03-19T10:53:30.000Z","updated_at":"2021-03-31T01:45:17.000Z","dependencies_parsed_at":"2023-03-16T14:15:17.534Z","dependency_job_id":null,"html_url":"https://github.com/wisdomfusion/docker-compose-lemp-stack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wisdomfusion/docker-compose-lemp-stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisdomfusion%2Fdocker-compose-lemp-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisdomfusion%2Fdocker-compose-lemp-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisdomfusion%2Fdocker-compose-lemp-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisdomfusion%2Fdocker-compose-lemp-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wisdomfusion","download_url":"https://codeload.github.com/wisdomfusion/docker-compose-lemp-stack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisdomfusion%2Fdocker-compose-lemp-stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31801277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","docker-compose","laravel","lemp","lnmp","mysql","php","redis"],"created_at":"2024-11-08T03:39:09.762Z","updated_at":"2026-04-14T14:32:07.570Z","avatar_url":"https://github.com/wisdomfusion.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-compose-lemp\n\nDocker Compose LEMP Stack, with PHP 7.4, MySQL 8.0, and Redis 6, for PHP applications especially for Laravel projects.\n\n## Before Usage\n\nWith this suite of docker orchestration files, I put a prefix before containers' name, `myapp` be default. In this way, all of the containers built with the compose file would come up this a `myapp-` in its title, for example, `myapp-php` and `myapp-nginx`, etc.\n\nCopy `.env.example` to `.env`, and change environment keys in `.env` file:\n\n- APP_NAME\n- MYSQL_DATABASE\n- MYSQL_USER\n- MYSQL_PASSWORD\n- MYSQL_ROOT_PASSWORD\n- REDIS_PASSWORD\n\n## Start Up\n\nWith all of your services defined in your `docker-compose` file, you just need to issue a single command to start all of the containers, create the volumes, and set up and connect the networks:\n\n```sh\ndocker-compose up -d\n```\n\nWhen you run docker-compose up for the first time, it will download all of the necessary Docker images, which might take a while. Once the images are downloaded and stored in your local machine, Compose will create your containers. The `-d` flag daemonizes the process, running your containers in the background.\n\nOnce the process is complete, use the following command to list all of the running containers:\n\n```sh\ndocker ps\n```\n\n## For PHP/Laravel Projects\n\nYou can use `docker-compose exec` to set the application key for the Laravel application, or other artison command.\n\n```sh\ndocker-compose exec php php artisan key:generate\ndocker-compose exec php php artisan config:cache\n```\n\n`composer`, PHP dependency manager, is installed in php container, you can run `docker-compose exec` command to access php container, and perform dependency management using `composer` command.\n\n```sh\ndocker-compose exec php bash\n```\n\nBesides, php cotainer also includes some useful tools, such as `vim`, `git`, `wget`, `curl`.\n\n## Clear Log Files\n\nBefore we push changes to Github, clear contents of log files first.\n\nOn Windows, double click [clear_log.cmd](./clear_log.cmd) and execute it.\n\nOn Linux/macOS, execute command as follows:\n\n```sh\nsh ./clear_log.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisdomfusion%2Fdocker-compose-lemp-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwisdomfusion%2Fdocker-compose-lemp-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisdomfusion%2Fdocker-compose-lemp-stack/lists"}