{"id":16380559,"url":"https://github.com/edyan/php-fpm","last_synced_at":"2025-03-21T01:32:38.023Z","repository":{"id":37580048,"uuid":"61994120","full_name":"edyan/php-fpm","owner":"edyan","description":"PHP Containers that expose FPM to a web server. Multiple version (5.3 to 8.0)","archived":false,"fork":false,"pushed_at":"2024-02-12T15:06:49.000Z","size":246,"stargazers_count":33,"open_issues_count":0,"forks_count":15,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-17T19:46:48.875Z","etag":null,"topics":["code","debian","docker-image","docker-php","php","php-versions","ubuntu"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/edyan/php","language":"Roff","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/edyan.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":"2016-06-26T15:00:48.000Z","updated_at":"2024-08-17T03:36:21.000Z","dependencies_parsed_at":"2024-02-12T16:44:02.007Z","dependency_job_id":null,"html_url":"https://github.com/edyan/php-fpm","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/edyan%2Fphp-fpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edyan%2Fphp-fpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edyan%2Fphp-fpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edyan%2Fphp-fpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edyan","download_url":"https://codeload.github.com/edyan/php-fpm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244721577,"owners_count":20498978,"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":["code","debian","docker-image","docker-php","php","php-versions","ubuntu"],"created_at":"2024-10-11T03:51:46.227Z","updated_at":"2025-03-21T01:32:37.688Z","avatar_url":"https://github.com/edyan.png","language":"Roff","readme":"[![Docker Pulls](https://img.shields.io/docker/pulls/edyan/php.svg)](https://hub.docker.com/r/edyan/php/)\n[![Build Status](https://travis-ci.com/edyan/docker-php.svg?branch=master)](https://travis-ci.com/edyan/docker-php)\n\n# PHP FPM Docker Image\nDocker Hub: https://hub.docker.com/r/edyan/php\nGithub Containers Registry: https://ghcr.io/edyan/php-fpm\n\nDocker containers to expose PHP FPM with a specific version of PHP (5.3 -\u003e 8.2) installed\nwith then main PHP extensions (curl, pdo, gd, etc ....) as well as XDebug.\n\nIt's mainly made for development purposes but can also be used as Production.\n\nThe aim of these containers is to be used with docker-compose and especially with\n[our Stakkr Tool](https://github.com/stakkr-org/stakkr).\n\n**Why using Debian / Ubuntu and not the official PHP images?**\n*Because a lot of hosts are based on Debian or Ubuntu, so it's to have in development\nthe same environment than in dev*\n\nWe try to use, as much as possible, distros officials PHP versions to avoid extra repositories.\n\n**Why iptables?**\n*Because [stakkr](https://github.com/stakkr-org/stakkr) blocks SMTP ports to avoid a\nlot of emails to be send during developments and by mistake*\n\n\n## Usage\nAdd the following to your docker-compose.yml file:\n```yaml\nphp:\n  image: edyan/php:8.0\n  environment:\n    FPM_UID: 1000\n    FPM_GID: 1000\n    PHP_ENABLED_MODULES: \"curl sqlite3\"\n\n```\n\n## Environment variables\nTwo variables have been created (`FPM_UID` and `FPM_GID`) to override the www-data user and group ids.\nGiving the current user login / pass that runs the container, it will allow anybody to own the files\nread / written by the fpm daemon (started by www-data).\n\nAnother variable will activate / deactivate development modules: `ENVIRONMENT`.\nSet to `dev` it'll change `max_execution_time` to `-1` and `display_errors` to `On`.\nSet to something else (Example: `production`) it'll do the opposite.\n\nFinally, it's possible to personnalize the enabled PHP modules by changing `PHP_ENABLED_MODULES`\nand setting the list, separated with a space of modules to activate.\nExample : `PHP_ENABLED_MODULES=\"curl sqlite3\"`\n\n## Custom php.ini directives\nIf you need to alter the php configuration, you can mount a volume containing `.conf` files to\n `/etc/php5/fpm/user-conf.d/` for PHP 5.x or `/etc/php/7.x/fpm/user-conf.d/` for PHP 7.x\n\nExample:\n```yaml\nvolumes:\n  - \"./conf/php-fpm-override:/etc/php/current/fpm/user-conf.d\"\n```\n\nIf you have a file named `conf/php-fpm-override/memory.conf` containing :\n```conf\nphp_value[memory_limit] = 127M\n```\n\nThe memory limit will be set to 127Mb. Be careful that you need to stop then start your container to make\nsure the parameters are taken into account.\n\n## PHP version\nTo use a specific PHP version, append the version number to the image name.\n\nEg: `image: edyan/php:8.2`\n\nThe following PHP versions are available:\n* PHP 8.2 (Ubuntu 22.04 + sury packages)\n* PHP 8.1 (Ubuntu 22.04)\n* PHP 8.0 (Ubuntu 22.04 + sury packages)\n* PHP 7.4 (Ubuntu 20.04)\n* PHP 7.3 (buster slim)\n* PHP 7.2 (Ubuntu 18.04)\n* PHP 7.1 (Ubuntu 22.04 + sury packages)\n* PHP 7.0 (stretch slim EOL)\n* PHP 5.6 (jessie slim EOL, not supported anymore)\n* PHP 5.5 (Ubuntu 14.04, not supported anymore)\n* PHP 5.4 (wheezy slim EOL, not supported anymore)\n* PHP 5.3 (Ubuntu 12.04, not supported anymore)\n\n\n## Specific versions\n### edyan/x.x-sqlsrv\nThat one has a driver for SQL Server (with MS Drivers).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedyan%2Fphp-fpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedyan%2Fphp-fpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedyan%2Fphp-fpm/lists"}