{"id":18679852,"url":"https://github.com/prometherion/php7-nginx","last_synced_at":"2025-07-30T01:34:38.275Z","repository":{"id":113036191,"uuid":"90540106","full_name":"prometherion/php7-nginx","owner":"prometherion","description":"Base image optimised for PHP 7.1 and NGINX","archived":false,"fork":false,"pushed_at":"2017-10-24T12:21:19.000Z","size":36,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T03:14:38.895Z","etag":null,"topics":["docker","docker-image","dockerfiles","nginx","php71"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/prometherion.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":"2017-05-07T14:52:12.000Z","updated_at":"2019-04-28T14:56:45.000Z","dependencies_parsed_at":"2023-06-06T15:45:38.153Z","dependency_job_id":null,"html_url":"https://github.com/prometherion/php7-nginx","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/prometherion/php7-nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometherion%2Fphp7-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometherion%2Fphp7-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometherion%2Fphp7-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometherion%2Fphp7-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prometherion","download_url":"https://codeload.github.com/prometherion/php7-nginx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometherion%2Fphp7-nginx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267792756,"owners_count":24144931,"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-07-29T02:00:12.549Z","response_time":2574,"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","docker-image","dockerfiles","nginx","php71"],"created_at":"2024-11-07T09:46:04.150Z","updated_at":"2025-07-30T01:34:38.240Z","avatar_url":"https://github.com/prometherion.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"docker-php7-nginx\n---\n\nBase image optimised for PHP 7.1 and NGINX, wrapped as Supervisor programs in order to provide a 12 factor app\nenvironment. It doesn't bind SSL port (`443`): load-balancer is responsible for that. Port 8080 in order to don't run as\nroot (\u003c= 1024 ports are privileged).\n\n\nCommands\n---\n### `/usr/bin/start` aka start\nStart supervisor default programs (`php-fpm` and `nginx`) configured in `/etc/supervisor/supervisord.conf`. Feel free to\nadd your custom programs in folder `/etc/supervisor/conf.d`.\n\nPrograms output like error and access log is set redirected to `STDOUT`, useful in order to use Docker logging capabilities.\n\n### `/usr/bin/restart` aka restart\nRestart **ALL** programs: useful if you would like to edit `php-fpm` or `nginx` configurations at runtime.\n\n### `/usr/bin/stop` aka stop\nGraceful shutdown of programs: this command stop all workers sending `SIGSTOP` signal, using Supervisord built-in command.\nFeel free to stop on your own (e.g.: `docker exec \u003cCONTAINER_ID\u003e stop`) or using Docker one (e.g.: `docker stop \u003cCONTAINER_ID\u003e`).\nThe `entrypoint` will trap both `SIGTERM` and `SIGQUIT` in order to achieve graceful shutdown, useful if you cannot handle\npre-stop scripts provided by some schedulers.\nRemember that the default amount of seconds before Supervisord will sending `SIGCHLD` is 10.\n\n\n\nEnvironment variables\n---\n\n#### Workdir `WORKDIR`\nSet to `/var/www`: NGINX serves folder `/var/www/public`. If you need to edit just replace default configuration on\n`/etc/nginx/conf.d/default.conf`\n\n#### dotEnv file `ENV_FILE`\ndotEnv file is not mandatory: in case you want execute hard-provisioning (i.e.: `.env.production`) the file be copied to\nmain `.env` (ensure that the file exists or it will be ignored).\ndotEnv can inject *all* environment variables due to `clear_env` configuration flag in `php-fpm` pool: it is not recommended\ndue to security issues\n\n\n#### PHP-FPM\n- `LISTEN` The PHP-FPM listener, default value set to `127.0.0.1:9000` (using TCP/IP due to higher scalability).\n- `MAX_CHILDREN` The number of child processes to be created\n                 (reference: https://myshell.co.uk/blog/2012/07/adjusting-child-processes-for-php-fpm-nginx/)\n- `START_SERVER` The number of child processes created on startup: should be higher than `MIN_SPARE_SERVERS`\n- `MIN_SPARE_SERVERS` The desired minimum number of idle server processes\n- `MAX_SPARE_SERVERS` The desired maximum number of idle server processes in order to avoid 104 errors\n                      (Connection reset by peer)\n- `MAX_REQUESTS` The number of requests each child process should execute before respawning. This can be useful to work\n                 around memory leaks in 3rd party libraries. For endless request processing specify 0\n\n#### PHP-FPM + NGINX\n- `MAX_UPLOAD_SIZE` Max upload size\n\n\n\nHealth-checks\n---\nChecking every 5 seconds if PHP-FPM and NGINX are running: feel free to provide a `/ping` endpoint in your application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprometherion%2Fphp7-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprometherion%2Fphp7-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprometherion%2Fphp7-nginx/lists"}