{"id":30742027,"url":"https://github.com/ethical-jobs/aphex","last_synced_at":"2025-10-16T09:03:11.713Z","repository":{"id":45118551,"uuid":"69919791","full_name":"ethical-jobs/aphex","owner":"ethical-jobs","description":"Lightning fast, super slim and production hardened: Alpine, PHP, Nginx docker container.","archived":false,"fork":false,"pushed_at":"2022-01-07T03:20:32.000Z","size":75,"stargazers_count":62,"open_issues_count":1,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-03-05T07:48:18.912Z","etag":null,"topics":["docker"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/ethical-jobs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-03T23:35:05.000Z","updated_at":"2022-06-04T00:09:06.000Z","dependencies_parsed_at":"2022-09-02T22:23:32.447Z","dependency_job_id":null,"html_url":"https://github.com/ethical-jobs/aphex","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/ethical-jobs/aphex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethical-jobs%2Faphex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethical-jobs%2Faphex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethical-jobs%2Faphex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethical-jobs%2Faphex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethical-jobs","download_url":"https://codeload.github.com/ethical-jobs/aphex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethical-jobs%2Faphex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273535175,"owners_count":25122797,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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"],"created_at":"2025-09-04T01:11:17.363Z","updated_at":"2025-10-16T09:03:06.681Z","avatar_url":"https://github.com/ethical-jobs.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alpine Linux, PHP, Nginx\n\nA super fast, super slim, production hardened PHP 7.3/7.4 and Nginx docker image built on Alpine Linux. \n\nPerfect for horizontally distributed PHP and `Laravel` applications run within a container cluster.\n\n## Stack\n* Alpine Linux\n* **PHP 7.3/7.4 \u0026 PHP-FPM**\n  * mysqli\n  * pdo, pdo_mysql + pdo_sqlite\n  * opcache\n  * pcntl\n  * bcmath\n  * exif\n  * mbstring\n  * gd\n  * xdebug-2.9 (_Not loaded_)\n* **NGINX 1.16** (FastCGI web-server)\n* **Composer 2** (PHP package manager)\n  * `hirak/prestissimo` was previously globally installed, but is no longer required nor supported under Composer 2\n* **Supervisor Daemon** (Process manager)\n* **Tooling**\n  * git\n  * wget\n  * bash\n\n## Usage\n\nThis image should **not** be directly built, it a starting point for your own Dockerfile.\n\nYour Dockerfile should `ADD ` an Nginx configuration file at the very least.\n\n[Lightweight example Dockerfile](https://github.com/ethical-jobs/aphex/blob/main/example/Dockerfile) of running a brand new Laravel application\n\n```bash\ndocker build -f example/Dockerfile .\n```\n \n### XDebug\nXDebug is included with the image, but not enabled for the PHP runtime.\nLazily loading the xdebug module through command-line can be done via\n \n```bash\nphp -d zend_extension=xdebug ...\n```\n \n## Logging Output\nA docker container should have the command it runs output to stdout and stderr, so the container runner (e.g. docker-compose / Kubernetes) can see this output and forward it to a logging system.\n\n### PHP\nPHP-FPM has workers that can emit to php://stdout and php://stderr. These are captured by PHP-FPM's master process and can be logged to a single error log file. However, there is no way to send these to two separate files.\n\nAdditionally, a further file symlink would be needed to forward this output to /dev/stdout. But, PHP-FPM does not run as a user with the privilege to create this symlink or write to the file. Only root can write to /dev/stdout.\n\n### Possible Solutions\n\n1. Have php workers write to a file in a known location, /var/www/storage/logs/stdout.log.\n2. A process running as root tails this file and forwards it to /dev/stdout\n3. Another process truncates this file occasionally to prevent it from filling up the file system\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethical-jobs%2Faphex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethical-jobs%2Faphex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethical-jobs%2Faphex/lists"}