{"id":16674558,"url":"https://github.com/settermjd/docker-for-local-development","last_synced_at":"2025-03-21T18:31:22.813Z","repository":{"id":141496829,"uuid":"66917718","full_name":"settermjd/docker-for-local-development","owner":"settermjd","description":"This project provides a basic Docker setup, for building a local development environment for Zend Expressive, and other PHP application development.","archived":false,"fork":false,"pushed_at":"2018-03-20T05:11:24.000Z","size":9,"stargazers_count":70,"open_issues_count":5,"forks_count":37,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-18T03:35:53.492Z","etag":null,"topics":["docker","docker-compose","nginx","php"],"latest_commit_sha":null,"homepage":null,"language":null,"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/settermjd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2016-08-30T07:33:45.000Z","updated_at":"2023-09-01T08:23:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a11fe83-d4a2-4fc8-936d-4e90ece3e4bb","html_url":"https://github.com/settermjd/docker-for-local-development","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fdocker-for-local-development","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fdocker-for-local-development/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fdocker-for-local-development/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fdocker-for-local-development/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/settermjd","download_url":"https://codeload.github.com/settermjd/docker-for-local-development/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244848518,"owners_count":20520535,"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","nginx","php"],"created_at":"2024-10-12T12:43:31.622Z","updated_at":"2025-03-21T18:31:22.761Z","avatar_url":"https://github.com/settermjd.png","language":null,"readme":"# Docker for Building a Local Development Environment\n\nThis project provides a basic Docker setup, for building a local development environment for Zend Expressive, and other PHP, application development.\n\n## Why?\n\nWhy?\nGood question.\nBut easy to answer.\nThe intent is to provide a starting point for developers to get up and running quickly, using Docker, to build a local development environment.\nIf you’d like much more background as to why, [checkout this tutorial on Master Zend Framework](http://www.masterzendframework.com/docker-development-environment/).\nIt lays out, much more comprehensively, the reasons why this is a good thing to do.\n\n## Installation\n\nTo get up and running, after cloning the repository:\n\n1. Install Docker. If you’re running a Linux distribution, use its package manager. If you’re using either macOS or Windows, download the respective Docker package installers: [Docker for Mac](https://docs.docker.com/docker-for-mac/) or [Docker for Windows](https://docs.docker.com/docker-for-windows/).\n\n2. Add the cloned files to the root of a Zend Expressive (or other PHP) project.\n\n3. In `docker/nginx/default.conf` change the default document root setting, `root /PATH/TO/YOUR/DOCUMENT/ROOT;`, to suit your installation. More than likely, there will be a `public/` directory in your source. So change the setting to be `root /var/www/html/public;`.\n\n4. Build the configuration by running: `docker-compose up -d`.\n\n### Check That Everything Is Working\n\nTo check that the build is working, run `docker-compose ps`.\nThis should give you output similar to the below.\n\n```console\n               Name                             Command             State               Ports\n---------------------------------------------------------------------------------------------------------\ndockerforlocaldevelopment_mysql_1     docker-entrypoint.sh mysqld   Up      3306/tcp\ndockerforlocaldevelopment_nginx_1     nginx -g daemon off;          Up      443/tcp, 0.0.0.0:8080-\u003e80/tcp\ndockerforlocaldevelopment_php_1       php-fpm                       Up      9000/tcp\ndockerforlocaldevelopment_testing_1   php-fpm                       Up      9000/tcp\n```\n\nIf you’d like to see more detailed information, check the log file by running `docker-compose logs`.\nTo check that the files are inside the container, run the following command, substituting `dockerforlocaldevelopment` to match your directory name:\n\n```console\ndocker exec -it dockerforlocaldevelopment_nginx_1 ls -lahrt /var/www/html\n```\n\n## Contributing\n\nSee the [CONTRIBUTING](CONTRIBUTING.md) file.\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%2Fsettermjd%2Fdocker-for-local-development","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsettermjd%2Fdocker-for-local-development","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Fdocker-for-local-development/lists"}