{"id":15023998,"url":"https://github.com/domingoruiz/docker-lamp","last_synced_at":"2025-04-09T20:02:30.153Z","repository":{"id":217062666,"uuid":"325033460","full_name":"domingoruiz/docker-lamp","owner":"domingoruiz","description":"Docker container based on Ubuntu 20.04 LTS with PHP, Mysql, Apache2 and Phpmyadmin.","archived":false,"fork":false,"pushed_at":"2020-12-28T16:23:32.000Z","size":5,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T20:02:14.328Z","etag":null,"topics":["apache2","docker","mysql","php56","php7","phpmyadmin","ubuntu20"],"latest_commit_sha":null,"homepage":"https://github.com/users/domingoruiz/packages/container/package/docker-lamp","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/domingoruiz.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}},"created_at":"2020-12-28T14:27:19.000Z","updated_at":"2023-12-13T04:20:32.000Z","dependencies_parsed_at":"2024-01-14T11:09:01.051Z","dependency_job_id":null,"html_url":"https://github.com/domingoruiz/docker-lamp","commit_stats":null,"previous_names":["domingoruiz/docker-lamp"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domingoruiz%2Fdocker-lamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domingoruiz%2Fdocker-lamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domingoruiz%2Fdocker-lamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domingoruiz%2Fdocker-lamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/domingoruiz","download_url":"https://codeload.github.com/domingoruiz/docker-lamp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103865,"owners_count":21048245,"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":["apache2","docker","mysql","php56","php7","phpmyadmin","ubuntu20"],"created_at":"2024-09-24T19:59:41.525Z","updated_at":"2025-04-09T20:02:30.123Z","avatar_url":"https://github.com/domingoruiz.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LAMP Server on Docker\nLAMP server mounted on Ubuntu 20.04 in a Docker container. There are two versions of this container. One with PHP5.6 and one with PHP7.0. This includes PHP, Mysql, Apache2 and Phpmyadmin. This container is very useful as a base for other containers.\n\n## Implementation of this container\nTo do this you must download the image on your local computer. You can do this in two ways\n\nFor PHP7.0 you can do it in one of the following two ways:\n```bash\ndocker pull ghcr.io/domingoruiz/docker-lamp:php7.0\n```\nor\n```bash\nwget https://github.com/domingoruiz/docker-lamp/archive/PHP7.0.zip\nunzip PHP7.0.zip\ncd PHP7.0/\ndocker image build -t docker-lamp-php7.0 .\n```\n\nFor PHP5.6 also you can do it in one of the following two ways:\n```bash\ndocker pull ghcr.io/domingoruiz/docker-lamp:php5.6\n```\nor\n```bash\nwget https://github.com/domingoruiz/docker-lamp/archive/PHP5.6.zip\nunzip PHP5.6.zip\ncd PHP5.6/\ndocker image build -t docker-lamp-php5.6 .\n```\n\nOnce the image is downloaded we must start the container\n```bash\ndocker container run -it -p 80:80 docker-lamp-php7.0\n```\nor\n```bash\ndocker container run -it -p 80:80 docker-lamp-php5.6\n```\n\nOnce started we will access inside the container to create the mysql user and load the application files\n```bash\ndocker container exec CONTAINER_ID /bin/bash\n```\n\nFinally, we will turn off the container and create our own image with our program already loaded.\n```bash\ndocker commit CONTAINER_ID IMAGE_NAME\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomingoruiz%2Fdocker-lamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdomingoruiz%2Fdocker-lamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomingoruiz%2Fdocker-lamp/lists"}