{"id":26566262,"url":"https://github.com/guilherme-codes/php-docker","last_synced_at":"2026-04-13T22:03:12.699Z","repository":{"id":107028508,"uuid":"304366617","full_name":"guilherme-codes/php-docker","owner":"guilherme-codes","description":"A simple PHP environment built on Docker and Docker Compose.","archived":false,"fork":false,"pushed_at":"2024-11-04T16:59:04.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T18:20:11.407Z","etag":null,"topics":["docker","lamp","lamp-setup","lamp-stack","php","phpmyadmin"],"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/guilherme-codes.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}},"created_at":"2020-10-15T15:18:31.000Z","updated_at":"2024-11-04T17:02:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a60c7de-4388-4372-a81a-dfacfbb9b3d1","html_url":"https://github.com/guilherme-codes/php-docker","commit_stats":null,"previous_names":["guilherme-codes/php-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guilherme-codes/php-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilherme-codes%2Fphp-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilherme-codes%2Fphp-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilherme-codes%2Fphp-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilherme-codes%2Fphp-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guilherme-codes","download_url":"https://codeload.github.com/guilherme-codes/php-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guilherme-codes%2Fphp-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31772643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"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","lamp","lamp-setup","lamp-stack","php","phpmyadmin"],"created_at":"2025-03-22T18:19:44.998Z","updated_at":"2026-04-13T22:03:12.684Z","avatar_url":"https://github.com/guilherme-codes.png","language":"PHP","readme":"# PHP Docker Environment\n\nThis project provides a Docker environment for running PHP applications.\n\n## Features\n\n- **Web container (Apache + PHP 7.3)**: The web container runs the Apache web server and PHP 7.3, providing the runtime environment for your PHP application.\n- **Database container (MySQL 8.0)**: The database container runs a MySQL 8.0 server, which can be used by your PHP application to store and retrieve data.\n- **Database management container (phpMyAdmin)**: The phpMyAdmin container provides a web-based graphical interface for managing the MySQL database.\n\n## Prerequisites\n\n- **Docker**: A containerization platform that allows you to build, deploy, and run applications in isolated environments.\n- **Docker Compose**: A tool for defining and running multi-container Docker applications.\n\n## Setup\n\n1. Clone this repository:\n\n```\ngit clone https://github.com/your-username/php-docker.git\n```\n\n2. Change to the project directory:\n\n```\ncd php-docker\n```\n\n3. Start the containers:\n\n```\ndocker-compose up -d\n```\n\nThis will create and start the necessary containers for your PHP application.\n\n## Project Structure\n\n- `www/`: Directory containing your PHP application files. All files in this directory will be mounted into the web container.\n- `dump/`: Directory containing SQL scripts for database initialization.\n- `conf/`: Directory containing database configuration files.\n- `docker-compose.yml`: Docker Compose configuration file that defines the services for your application.\n- `Dockerfile`: Dockerfile that defines the custom image for the web container.\n\n## Accessing the Application\n\nAfter the containers are started, you can access your PHP application at `http://localhost:8001`.\n\nTo access the database management (phpMyAdmin), go to `http://localhost:8000`.\n\n## Database Configuration\n\nThe MySQL database is accessible on port `3306` of the host. The default credentials are:\n\n- User: `root`\n- Password: `root`\n\nThe `local_db` database is created automatically.\n\n## Customization\n\nYou can customize the PHP application, the database, and the container configuration according to your needs.\n\n## Contributing\n\nFeel free to open issues and submit pull requests with improvements and fixes.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilherme-codes%2Fphp-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguilherme-codes%2Fphp-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilherme-codes%2Fphp-docker/lists"}