{"id":22089955,"url":"https://github.com/ejklock/docker-php-env-generate","last_synced_at":"2026-04-13T15:32:12.169Z","repository":{"id":37807862,"uuid":"478333968","full_name":"ejklock/docker-php-env-generate","owner":"ejklock","description":"This repository provides a Docker environment generator powered by Docker Compose specifically tailored for PHP applications. Whether you're working on a small project or a large-scale application, setting up your development environment can be time-consuming. With this tool, you can quickly generate a boilerplate environment configured with Docker","archived":false,"fork":false,"pushed_at":"2024-08-16T14:09:32.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-10T01:18:49.098Z","etag":null,"topics":["boilerplate","docker","laravel","php","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Python","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/ejklock.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-04-05T23:32:59.000Z","updated_at":"2025-05-26T02:11:10.000Z","dependencies_parsed_at":"2024-06-22T22:41:02.482Z","dependency_job_id":"a82fa87d-db9c-43e0-8410-ba70563a6fa7","html_url":"https://github.com/ejklock/docker-php-env-generate","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ejklock/docker-php-env-generate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejklock%2Fdocker-php-env-generate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejklock%2Fdocker-php-env-generate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejklock%2Fdocker-php-env-generate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejklock%2Fdocker-php-env-generate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejklock","download_url":"https://codeload.github.com/ejklock/docker-php-env-generate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejklock%2Fdocker-php-env-generate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31759322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","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":["boilerplate","docker","laravel","php","wordpress"],"created_at":"2024-12-01T02:14:47.964Z","updated_at":"2026-04-13T15:32:12.111Z","avatar_url":"https://github.com/ejklock.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":" Docker Environment Generator with Docker Compose for PHP Applications\n\n## Description:\n\nThis repository provides a Docker environment generator powered by Docker Compose specifically tailored for PHP applications. Whether you're working on a small project or a large-scale application, setting up your development environment can be time-consuming. With this tool, you can quickly generate a boilerplate environment configured with Docker Compose, allowing you to focus on coding rather than environment setup.\n\n### Features:\n- **Platform Support:** Works seamlessly on Windows and Linux platforms.\n- **Easy Setup:** Download the executable, provide necessary inputs, and let the tool do the rest.\n- **Flexible Configuration:** Choose the PHP-FPM version and customize your environment based on your project's requirements.\n- **Pre-configured Services:** Includes MySQL and Nginx configurations to kickstart your development process.\n- **Command Line Interface:** Interact with the tool via command line, making it convenient for developers.\n\n### How to Use:\n1. Download the executable for your platform from the provided links.\n2. Extract and execute the executable in your project folder.\n3. Follow the prompts to input necessary information, such as PHP-FPM version and Git repository URL.\n4. Once generated, you'll have a ready-to-use Docker environment for your PHP application.\n5. Use `docker-compose up` command to run the project, and execute additional commands inside containers using `docker-compose exec`.\n\n## Steps\n\n### 1. Download the Executable for the solution according to your platform \n\nGet the binaries on relases page\n\n### 2. Extract and copy the executable to your project folder and execute it via terminal (cmd, powershell, and variants)\nGet binaries on releases page \n* ### Linux\n  ```\n   sudo chmod 777 docker-dev-lamp-env\n  ```\n  ```\n   ./docker-dev-lamp-env\n  ```\n\n* ### Windows\n\n  ```\n   docker-dev-lamp-env\n\n  ### 3. Provide the required inputs through the prompt and the repository URL (.git at the end of the URL)\n  \n  1. Name and DockerHub image of php-fpm\n\n\n     The project author provides [several images with different PHP versions](https://registry.hub.docker.com/r/ejklock/php-fpm/tags), including Composer and various PHP extensions by default (5.6, 7.3, and 7.4), you just need to specify the desired version (e.g., ejklock/php-fpm:7.3 or ejklock/php-fpm:7.4).\n  \n   ![image](https://user-images.githubusercontent.com/8179907/175052410-a5dd25cd-794f-4f0e-8ee9-f4a05f3cca4c.png)\n \n 2. Git repository URL of the project (SSH key configuration required)\n\n   ![image](https://user-images.githubusercontent.com/8179907/175055257-98c9d78d-f71c-4451-8053-e1bf43b887ce.png)\n\n\n### 4. Generated structure\n\nThe script will generate a boilerplate for the application ready to run.\n\n![image](https://user-images.githubusercontent.com/8179907/175055670-9a8d7832-49c9-48a8-902a-545a949b5544.png)\n\n 1. App folder\n    \n    This folder contains the cloned code of the application. This is where you will work.\n \n 2. Docker-compose folder\n    \n    This folder contains some configurable files of the structure in general\n    \n    1. MySQL folder\n       \n       In this folder, you (before bringing up the application container for the first time) can place the database script so that the container restores an existing database in your development environment. Just delete this example file or add content to it.\n       \n    2 . Nginx folder\n      \n      This folder contains configurations for the Nginx web server. For more details on the configuration file, visit \u003chttps://www.nginx.com/\u003e.\n      \n    3 . PHP-FPM folder\n      \n      This folder contains a custom.ini file where we can put PHP configurations that will be overridden (php.ini).\n      \n 4. Root folder of the generated boilerplate\n  \n    In the root folder, you will find 2 files:\n   \n    1. \".env\"\n      \n      The \".env\" file of the boilerplate controls some environment variables such as database user, password, port, etc.\n      \n    2. docker-compose.yml\n\n      This is the docker-compose configuration file where the services and configurations to be brought up by Docker are described. For more information, consult the Docker Compose documentation \u003chttps://docs.docker.com/compose/\u003e.   \n\n### 4. Running the project\n\nTo run the project, simply, in the root of the generated boilerplate (outside the app folder), run:\n\n```\ndocker-compose up\n```\n### 5. Running commands inside containers\n\nDocker allows you to execute commands inside containers to perform some actions.\n\n```\ndocker-compose exec \u003cservice_name_in_docker-compose.yml_file\u003e \u003cyour_command\u003e\n```\n\n1. Run composer install on the app service:\n\n```\ndocker-compose exec app composer install\n```\n\n2. Run a PHP/Laravel command on the app service:\n```\ndocker-compose exec app php artisan\n```\n\n### Contribution:\nContributions are welcome! If you have any ideas to improve this tool or encounter any issues, feel free to open an issue or submit a pull request.\n\n### Credits:\nThis project is maintained by ejklock and is inspired by the need for an efficient Docker environment setup for PHP development.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejklock%2Fdocker-php-env-generate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejklock%2Fdocker-php-env-generate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejklock%2Fdocker-php-env-generate/lists"}