{"id":22008905,"url":"https://github.com/albertcolom/docker-lemp","last_synced_at":"2025-05-06T16:34:57.516Z","repository":{"id":186491634,"uuid":"64668792","full_name":"albertcolom/docker-lemp","owner":"albertcolom","description":"Docker multicontainer: Nginx, php7-fpm, MySQL + Redis","archived":false,"fork":false,"pushed_at":"2019-06-04T21:33:48.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T01:31:53.282Z","etag":null,"topics":["docker","docker-compose","docker-multicontainer","lemp","mysql","nginx","php7-fpm","redis"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/albertcolom.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}},"created_at":"2016-08-01T13:22:21.000Z","updated_at":"2024-04-04T21:15:12.000Z","dependencies_parsed_at":"2024-02-06T01:47:54.862Z","dependency_job_id":null,"html_url":"https://github.com/albertcolom/docker-lemp","commit_stats":null,"previous_names":["albertcolom/docker-lemp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertcolom%2Fdocker-lemp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertcolom%2Fdocker-lemp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertcolom%2Fdocker-lemp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertcolom%2Fdocker-lemp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertcolom","download_url":"https://codeload.github.com/albertcolom/docker-lemp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252721318,"owners_count":21793792,"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","docker-multicontainer","lemp","mysql","nginx","php7-fpm","redis"],"created_at":"2024-11-30T02:07:41.785Z","updated_at":"2025-05-06T16:34:57.445Z","avatar_url":"https://github.com/albertcolom.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Docker LEMP + Redis\n===========================\n[![Build Status](https://travis-ci.org/albertcolom/docker-lemp.svg?branch=master)](https://travis-ci.org/albertcolom/docker-lemp)\n### Docker multicontainer: Nginx, php7-fpm, MySQL, Redis\n\n### Requirements\n- [Docker](https://www.docker.com/)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n\n### Installation\nClone this repository\n```sh\n$ git clone git@github.com:albertcolom/docker-lemp.git\n```\n\nStart docker compose\n```sh\n$ docker-compose up -d\n\nCreating docker_mysql_1\nCreating docker_php_1\nCreating docker_web_1\nCreating docker_redis_1\n```\n\nList the contents\n```sh\n├── README.md\n├── config\n│   ├── nginx\n│   │   └── default.conf\n│   └── php-fpm\n│       └── php-fpm.conf\n├── docker-compose.yml\n├── logs\n│   └── nginx\n│       ├── access.log\n│       └── error.log\n└── www\n    └── index.php\n```\nWeb Server\n- [http://localhost:8080](http://localhost:8080)\n\nList the containers\n```sh\n$ docker-compose ps\n\n     Name                  Command             State                     Ports\n-------------------------------------------------------------------------------------------------\ndocker_mysql_1   docker-entrypoint.sh mysqld   Up      0.0.0.0:3306-\u003e3306/tcp\ndocker_php_1     php-fpm                       Up      0.0.0.0:9080-\u003e9000/tcp\ndocker_redis_1   docker-entrypoint.sh redis    Up      0.0.0.0:6379-\u003e6379/tcp\ndocker_web_1     nginx -g daemon off;          Up      0.0.0.0:443-\u003e443/tcp, 0.0.0.0:8080-\u003e80/tcp\n```\n\nStop containers docker compose\n```sh\n$ docker-compose stop\n\nStopping docker_web_1 ... done\nStopping docker_php_1 ... done\nStopping docker_redis_1 ... done\nStopping docker_mysql_1 ... done\n```\n\nRemove containers docker compose\n```sh\n$ docker-compose rm -f\n\nGoing to remove docker_web_1, docker_php_1, docker_redis_1, docker_mysql_1\nRemoving docker_web_1 ... done\nRemoving docker_php_1 ... done\nRemoving docker_redis_1 ... done\nRemoving docker_mysql_1 ... done\n```\n\n### Tips\nConnect to Docker container\n```sh\n$ docker exec -i -t 665b4a1e17b6 /bin/bash #by ID\nor\n$ docker exec -i -t docker_redis_1 /bin/bash #by Name\n```\n\nStop all Docker containers\n```sh\n$ docker stop $(docker ps -a -q)\n```\n\nRemove all Docker containers\n```sh\n$ docker rm $(docker ps -a -q)\n```\n\nRemove all Docker images\n```sh\n$ docker rmi $(docker images -q)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertcolom%2Fdocker-lemp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertcolom%2Fdocker-lemp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertcolom%2Fdocker-lemp/lists"}