{"id":25602758,"url":"https://github.com/w3labkr/docker-lamp-stack","last_synced_at":"2026-04-11T12:04:39.775Z","repository":{"id":278517050,"uuid":"935366419","full_name":"w3labkr/docker-lamp-stack","owner":"w3labkr","description":"A basic LAMP stack environment built using Docker Compose.","archived":false,"fork":false,"pushed_at":"2025-02-20T07:22:48.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-20T08:22:00.740Z","etag":null,"topics":["apache","docker","docker-compose","lamp","mariadb","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/w3labkr.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":"2025-02-19T10:29:04.000Z","updated_at":"2025-02-20T07:22:52.000Z","dependencies_parsed_at":"2025-02-20T08:22:27.893Z","dependency_job_id":"952640de-d956-4c52-8a83-93d7da7b9b25","html_url":"https://github.com/w3labkr/docker-lamp-stack","commit_stats":null,"previous_names":["w3labkr/docker-lamp-stack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w3labkr%2Fdocker-lamp-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w3labkr%2Fdocker-lamp-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w3labkr%2Fdocker-lamp-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w3labkr%2Fdocker-lamp-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/w3labkr","download_url":"https://codeload.github.com/w3labkr/docker-lamp-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240055953,"owners_count":19741042,"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":["apache","docker","docker-compose","lamp","mariadb","mysql","php","redis"],"created_at":"2025-02-21T17:23:56.461Z","updated_at":"2026-04-11T12:04:39.734Z","avatar_url":"https://github.com/w3labkr.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-lamp-stack\n\nA basic LAMP stack environment built using Docker Compose. It consists of the following:\n\n- PHP\n- Apache\n- MySQL\n- Mariadb\n- Redis\n\n## Installation\n\nBuild and Run the Containers\n\n```shell\ngit clone https://github.com/w3labkr/docker-lamp-stack.git docker\ncd docker\ncp .env.example .env\ndocker compose up -d\n```\n\nRegister crontab and rebuild services\n\n```shell\n$ cp docker-entrypoint.sh bin/\u003cPHP_VERSION\u003e/docker-entrypoint.sh\n$ docker compose up -d --build\n```\n\n## Usage\n\nCreate and start containers\n\n- `-d`: Detached mode: Run containers in the background\n\n```shell\ndocker compose up -d\n```\n\nBuild or rebuild services\n\n```shell\ndocker compose up --build\n```\n\nStop and remove containers, networks\n\n```shell\ndocker compose down\n```\n\nRestart service containers\n\n```shell\ndocker compose restart apache2\n```\n\nExecute a command in a running container\n\n```shell\ndocker compose exec apache2 bash\nexit\n```\n\nExecute a command in a running container\n\n```shell\ndocker compose exec mariadb bash\nmysql -uroot -psecret\nshow databases;\nselect Host, User from mysql.user;\nexit\n```\n\nForce-remove a running container (--force)\n\n```shell\ndocker container rm -f $(docker container ls -aq)\n```\n\nRemove one or more images\n\n- `-f`: Filter output based on conditions provided\n- `-q`: Only show image IDs\n\n```shell\ndocker image rm -f $(docker image ls -q)\n```\n\nDo not use cache when building the image\n\n```shell\ndocker compose build --no-cache\n```\n\nRemove unused data\n\n```shell\ndocker system prune -a\n```\n\n## Reference\n\n- [sprintcube/docker-compose-lamp](https://github.com/sprintcube/docker-compose-lamp)\n- [robertsaupe/docker-compose-lamp](https://github.com/robertsaupe/docker-compose-lamp)\n- [laradock](https://github.com/laradock/laradock)\n\n## License\n\n[MIT LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw3labkr%2Fdocker-lamp-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fw3labkr%2Fdocker-lamp-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw3labkr%2Fdocker-lamp-stack/lists"}