{"id":17343042,"url":"https://github.com/greg0/php-runtime-env","last_synced_at":"2026-02-18T04:33:50.626Z","repository":{"id":144976016,"uuid":"121971838","full_name":"Greg0/php-runtime-env","owner":"Greg0","description":"docker-compose environment for PHP app local development","archived":false,"fork":false,"pushed_at":"2024-01-10T22:27:02.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T20:44:53.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/Greg0.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":"2018-02-18T17:08:10.000Z","updated_at":"2024-02-06T15:19:38.000Z","dependencies_parsed_at":"2024-01-10T23:38:04.453Z","dependency_job_id":null,"html_url":"https://github.com/Greg0/php-runtime-env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Greg0/php-runtime-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Greg0%2Fphp-runtime-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Greg0%2Fphp-runtime-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Greg0%2Fphp-runtime-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Greg0%2Fphp-runtime-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Greg0","download_url":"https://codeload.github.com/Greg0/php-runtime-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Greg0%2Fphp-runtime-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29568584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T04:18:28.490Z","status":"ssl_error","status_checked_at":"2026-02-18T04:13:49.018Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-10-15T16:08:10.972Z","updated_at":"2026-02-18T04:33:45.614Z","avatar_url":"https://github.com/Greg0.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Image build\n===========\n\n```shell\nmake build image=php8.0\n```\n\nDocker-compose\n==============\n\nPut your PHP application into `src/` and public files (e.g. `index.php`) into `src/public/`\n\n[Makefile](`Makefile`) provides shortcuts. Argument `php` is optional\n\n```shell\nmake start php=8.0\n```\n\nFor xdebug images\n\n```shell\nmake debug php=8.0\n```\n\nTo stop containers\n\n```shell\nmake stop\n```\n\n\n\nFiles organization\n==================\n\nNginx listening for files in `src/public/` on port `8080`.\n\nComposer\n========\n\nTo run composer inside container exec\n\n```\ndocker exec -it project_dir_php_1 composer install\n```\n\nor use official composer image https://store.docker.com/images/composer\n\n\u003e Note: Official composer image is used unside `php` container.\n\nPermissions in linux volumes\n===========================\n\nFor fresh docker installation read [Post-installation steps for Linux](https://docs.docker.com/install/linux/linux-postinstall/)\n\nTo avoid permissions issues follow instructions from article \n\"[Use Linux user namespaces to fix permissions in docker volumes](https://www.jujens.eu/posts/en/2017/Jul/02/docker-userns-remap/)\"\n\n#### TL;DR;\n\nWord `USER` in listings should be replaced by your system user name: `id -u -n`\n\n\n1. Create or add to existing file `/etc/docker/daemon.json`\n\n```json\n{\n    \"userns-remap\": \"USER\"\n}\n```\n\n2. Edit file `/etc/subuid`\n\n```\nUSER:1000:1\nUSER:100000:65536\n```\n\n\n3. Edit file `/etc/subgid`\n\n```\nUSER:996:1\nUSER:100000:65536\n```\n\nReplace `996` with value returned by command `getent group docker`\n\n---\n\nInstead of above you can also often run\n\n```shell\nchown $(id -un) -R .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreg0%2Fphp-runtime-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreg0%2Fphp-runtime-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreg0%2Fphp-runtime-env/lists"}