{"id":13316327,"url":"https://github.com/juancarlosqr/docker-php-dev","last_synced_at":"2025-03-10T22:33:00.763Z","repository":{"id":36142058,"uuid":"40446058","full_name":"juancarlosqr/docker-php-dev","owner":"juancarlosqr","description":"PHP Development with Docker","archived":false,"fork":false,"pushed_at":"2019-03-25T20:30:55.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-12T11:57:59.120Z","etag":null,"topics":["docker","docker-compose","mariadb","nginx","php7"],"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/juancarlosqr.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}},"created_at":"2015-08-09T18:25:10.000Z","updated_at":"2023-03-09T01:27:37.000Z","dependencies_parsed_at":"2022-09-09T12:00:30.339Z","dependency_job_id":null,"html_url":"https://github.com/juancarlosqr/docker-php-dev","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlosqr%2Fdocker-php-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlosqr%2Fdocker-php-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlosqr%2Fdocker-php-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlosqr%2Fdocker-php-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juancarlosqr","download_url":"https://codeload.github.com/juancarlosqr/docker-php-dev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242939425,"owners_count":20209874,"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":["docker","docker-compose","mariadb","nginx","php7"],"created_at":"2024-07-29T18:21:31.995Z","updated_at":"2025-03-10T22:33:00.432Z","avatar_url":"https://github.com/juancarlosqr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Development with Docker\n\n![docker image](src/assets/docker.png)\n\n## About\n\n\u003e This environment was created to work for vanilla PHP only. It might not work for frameworks\n\n- PHP development environment running on Docker\n- Includes Nginx and MariaDB\n- Each service runs on its own docker container\n\n## How to use\n\n1. Install __docker__ and __docker-compose__. Read how on the [docker docs](https://docs.docker.com/)\n2. Clone this repo\n3. Put your `php` code inside the `src` folder\n4. Run `docker-compose up` (Add `-d` to run in background)\n5. Go to `http://localhost` on your browser\n6. Enjoy!\n7. Type `Ctrl+C` to stop containers (or `docker-compose stop`)\n\n## Images used\n\n- [PHP](https://hub.docker.com/_/php)\n- [Nginx](https://hub.docker.com/_/nginx)\n- [MariaDB](https://hub.docker.com/_/mariadb)\n\n## Sources\n\n- [A docker-compose PHP environment from scratch](https://x-team.com/blog/docker-compose-php-environment-from-scratch/)\n- [Dockerise your PHP application with Nginx and PHP7-FPM](http://geekyplatypus.com/dockerise-your-php-application-with-nginx-and-php7-fpm/)\n- [Making your dockerised PHP application even better](http://geekyplatypus.com/making-your-dockerised-php-application-even-better/)\n- [Docker for PHP developers](http://www.newmediacampaigns.com/blog/docker-for-php-developers)\n\n## Commands\n\n```sh\n# list images/containers\ndocker image ls\ndocker container ls\n\n# run docker containers\ndocker-compose up\n\n# run docker containers in detached mode\ndocker-compose up -d\n\n# re-build images\ndocker-compose up --build\n\n# start containers\ndocker-compose start\n\n# stop containers\ndocker-compose stop\n\n# stop and delete containers\ndocker-compose down\n\n# view containers logs\ndocker-compose logs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlosqr%2Fdocker-php-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuancarlosqr%2Fdocker-php-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlosqr%2Fdocker-php-dev/lists"}