{"id":18131518,"url":"https://github.com/shakaib-arif/docker-lamp","last_synced_at":"2026-04-08T16:31:56.336Z","repository":{"id":260477658,"uuid":"236513812","full_name":"shakaib-arif/docker-lamp","owner":"shakaib-arif","description":"Single container docker LAMP stack using runit as an init scheme.","archived":false,"fork":false,"pushed_at":"2020-09-09T19:54:51.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T15:37:35.076Z","etag":null,"topics":["apache2","bash-scripting","docker","docker-container","dockerfile","lamp-stack","linux","mariadb-server","wordpress"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shakaib-arif.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-01-27T14:50:14.000Z","updated_at":"2023-03-05T06:28:32.000Z","dependencies_parsed_at":"2024-10-31T15:24:05.406Z","dependency_job_id":"98d0c389-5154-49f1-b762-1c72b7485be1","html_url":"https://github.com/shakaib-arif/docker-lamp","commit_stats":null,"previous_names":["shakaib-arif/docker-lamp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shakaib-arif/docker-lamp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakaib-arif%2Fdocker-lamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakaib-arif%2Fdocker-lamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakaib-arif%2Fdocker-lamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakaib-arif%2Fdocker-lamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shakaib-arif","download_url":"https://codeload.github.com/shakaib-arif/docker-lamp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakaib-arif%2Fdocker-lamp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31564883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"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":["apache2","bash-scripting","docker","docker-container","dockerfile","lamp-stack","linux","mariadb-server","wordpress"],"created_at":"2024-11-01T12:07:48.794Z","updated_at":"2026-04-08T16:31:56.317Z","avatar_url":"https://github.com/shakaib-arif.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker-LAMP\nIt's a single container docker LAMP stack using `runit` as an init scheme for its processes. We are using runit so we can run multiple processes in our container which will be administered by it. If you want to learn more about runit then check out the following [link](https://github.com/shakaib-arif/runsv/) of my runit docker container.\n\n# LAMP Usage\nYou can run the contianer by choosing any method of your preference.\n\n1. Docker Hub\n2. Source Code\n\n## 1. Docker Hub\n\nPull the image from docker hub and run its container.\n```bash\ndocker pull shakaib/docker-lamp\ndocker run -itd --name docker-lamp -p 8080:80 shakaib/docker-lamp\ndocker exec -it docker-lamp bash\n# in the container terminal check the process\nps aux\n```\n\nThis command will downlaod the image from docker hub and create its container.\n```bash\ndocker run -itd --name docker-lamp -p 8080:80 shakaib/docker-lamp /boot\ndocker exec -it docker-lamp bash\n# in the container terminal check the process\nps aux\n```\n\nIf you see both apache and mysql processes are running then open your internet browser and access this container by using public IP address of your Docker host http://127.0.0.1:8080 \nMy docker host is on my PC hence I'm using localhost to access my wordpress website.\n\n## 2. Source Code\n\nOpen your terminal and follow these instructions to checkout the source code and build the image yourself.\n\n```bash\ncd ~\ngit clone https://github.com/shakaib-arif/docker-lamp.git\ncd docker-lamp\ndocker build -t shakaib/docker-lamp .\ndocker run -itd --name docker-lamp -p 8080:80 shakaib/docker-lamp\ndocker exec -it docker-lamp bash\n# in the container terminal check the process\nps aux\n```\n\n\u003e **Note:** Make sure the port we are using is opened in case if there is any firewall involved. We are using port 8080 for our container, confirm if the port is opened by issuing this `netstat -tuna | grep 8080` in the terminal. If it's not open then check out this [tutorial](https://www.cyberciti.biz/faq/linux-unix-open-ports/) to open a port.\n\n\n## Reference\nhttps://github.com/shakaib-arif/runsv/\n\nhttps://www.cyberciti.biz/faq/linux-unix-open-ports/\n\nhttps://www.linuxjournal.com/content/bash-trap-command\n\nhttps://linuxhint.com/wait_command_linux/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshakaib-arif%2Fdocker-lamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshakaib-arif%2Fdocker-lamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshakaib-arif%2Fdocker-lamp/lists"}