{"id":28286286,"url":"https://github.com/nalmeida/php-docker","last_synced_at":"2026-04-26T16:32:41.008Z","repository":{"id":141870841,"uuid":"591352883","full_name":"nalmeida/php-docker","owner":"nalmeida","description":"A simple way to run PHP applications in a Docker container using Apache as the web server. It includes a pre-configured PHP 8.0.27 environment and Apache.","archived":false,"fork":false,"pushed_at":"2023-01-20T17:24:52.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T00:39:33.009Z","etag":null,"topics":["docker-compose","php","php8"],"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/nalmeida.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,"zenodo":null}},"created_at":"2023-01-20T14:51:41.000Z","updated_at":"2023-01-20T17:25:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"6b3fa955-f30b-4b35-8aaa-6465a5cb1df9","html_url":"https://github.com/nalmeida/php-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nalmeida/php-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalmeida%2Fphp-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalmeida%2Fphp-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalmeida%2Fphp-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalmeida%2Fphp-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nalmeida","download_url":"https://codeload.github.com/nalmeida/php-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalmeida%2Fphp-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32305035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: 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-compose","php","php8"],"created_at":"2025-05-21T20:11:59.142Z","updated_at":"2026-04-26T16:32:41.003Z","avatar_url":"https://github.com/nalmeida.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Docker with Apache\n\n\u003e This project provides a simple way to run PHP applications in a Docker container using Apache as the web server. It includes a pre-configured PHP 8.0.27 environment and Apache.\n\n## Requirements\n\n* `Docker`\n* `docker-compose`\n\n### Tested on\n\n* `MacOS 11.5.2`\n* `Docker version 20.10.12`\n* `docker-compose version 1.29.2`\n* `bash-5.2`\n\n## Getting Started\n\n1. Clone the repository to your local machine: git clone https://github.com/nalmeida/php-docker.git\n2. Navigate to the project directory: `cd php-docker`\n3. Build the Docker image: `docker-compose build`\n4. Start the container: `docker-compose up`\n\nYour PHP application should now be running on http://localhost:8080.\n\n## Configuration\n\nYou can configure the PHP version and other settings by modifying [docker-compose.yml](./docker-compose.yml) file.\n\nPlease note that the `container_name` is not a required field in the compose file and can be removed if not needed.\n\n## Mounting your code\n\nYou can mount your code into the container by modifying the [docker-compose.yml](./docker-compose.yml) file and adding a volume under the web service.\n\nYour code is located in the `src` directory of your project, you can add the following line under the web service:\n\n```\nvolumes:\n  - ./src:/var/www/html\n```\n\n## Stopping the container\n\nTo stop the container, you can use the command `docker-compose down` or `CTRL+C` on your terminal.\n\n## Support\n\nIf you have any issues or questions, please open an issue in the GitHub repository.\n\n## Links\n\nBased on the post: https://www.section.io/engineering-education/dockerized-php-apache-and-mysql-container-development-environment/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnalmeida%2Fphp-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnalmeida%2Fphp-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnalmeida%2Fphp-docker/lists"}