{"id":15028680,"url":"https://github.com/geschke/docker-php-fpm-swrm","last_synced_at":"2026-03-02T20:34:16.543Z","repository":{"id":71169366,"uuid":"127169269","full_name":"geschke/docker-php-fpm-swrm","owner":"geschke","description":"A minimal Docker image which provides a php-fpm environment with different PHP versions","archived":false,"fork":false,"pushed_at":"2024-10-04T06:35:12.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-13T13:02:24.692Z","etag":null,"topics":["docker","docker-image","php-fpm","php-fpm-environment","php-fpm-swrm","php74","php8","php80","php81","php82","php82-docker","php83","php83-docker"],"latest_commit_sha":null,"homepage":"","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/geschke.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-03-28T16:36:05.000Z","updated_at":"2024-10-04T06:35:16.000Z","dependencies_parsed_at":"2024-09-28T20:21:06.830Z","dependency_job_id":"892f1f41-b859-4e59-8edc-9c6bc9fea577","html_url":"https://github.com/geschke/docker-php-fpm-swrm","commit_stats":null,"previous_names":[],"tags_count":54,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geschke%2Fdocker-php-fpm-swrm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geschke%2Fdocker-php-fpm-swrm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geschke%2Fdocker-php-fpm-swrm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geschke%2Fdocker-php-fpm-swrm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geschke","download_url":"https://codeload.github.com/geschke/docker-php-fpm-swrm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225269007,"owners_count":17447449,"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":["docker","docker-image","php-fpm","php-fpm-environment","php-fpm-swrm","php74","php8","php80","php81","php82","php82-docker","php83","php83-docker"],"created_at":"2024-09-24T20:08:52.343Z","updated_at":"2026-03-02T20:34:11.516Z","avatar_url":"https://github.com/geschke.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# geschke/php-fpm-swrm\n\nThis is a minimalistic php-fpm Docker image based on the official Ubuntu images.  \nThe image provides different PHP versions as seen below.\n\n## Update (October 3, 2024)\n\n### New Build Schema\n\nThe build schema has been updated for better efficiency, flexibility, and speed. Git tags are no longer used to version Docker images, and they are now deprecated. All future images will follow the new tagging structure. The legacy Git-tagged images are no longer maintained or considered in the build process.\n\n### Latest Image Update\n\nThe `latest` Docker image has shifted from the previous `ubuntu22.04` base (tagged `8.1-fpm-n`) to the new `ubuntu24.04` base, now tagged as `8.3-fpm-n`. Please update your workflows accordingly if you rely on the `latest` tag.\n\n## Supported PHP versions\n\n### Current versions\n\n* 8.4-fpm-ubuntu24.04-sury-n - PHP 8.4 from deb.sury.org [PPA](https://launchpad.net/~ondrej/+archive/ubuntu/php/) based on Ubuntu 24.04 LTS\n* 8.3-fpm-ubuntu24.04-sury-n - PHP 8.3 from deb.sury.org [PPA](https://launchpad.net/~ondrej/+archive/ubuntu/php/) based on Ubuntu 24.04 LTS\n* 8.2-fpm-ubuntu24.04-sury-n - PHP 8.2 from deb.sury.org [PPA](https://launchpad.net/~ondrej/+archive/ubuntu/php/) based on Ubuntu 24.04 LTS\n\n* 8.3-fpm-ubuntu22.04-sury-n - PHP 8.3 from deb.sury.org [PPA](https://launchpad.net/~ondrej/+archive/ubuntu/php/) based on Ubuntu 22.04 LTS\n* 8.2-fpm-ubuntu22.04-sury-n - PHP 8.2 from deb.sury.org [PPA](https://launchpad.net/~ondrej/+archive/ubuntu/php/) based on Ubuntu 22.04 LTS\n* 8.1-fpm-ubuntu22.04-sury-n - PHP 8.1 from deb.sury.org [PPA](https://launchpad.net/~ondrej/+archive/ubuntu/php/) based on Ubuntu 22.04 LTS\n\n* 8.3-fpm-n, **latest** - PHP 8.3 included in the current Ubuntu 24.04 LTS distribution. The **latest** tag has switched to this version on 2024-10-03.\n* 8.1-fpm-n - PHP 8.1 included in Ubuntu 22.04 LTS distribution. \n\n### Older / deprecated versions\n\n\n* 8.0-fpm-ubuntu22.04-sury-n - PHP 8.0 from deb.sury.org [PPA](https://launchpad.net/~ondrej/+archive/ubuntu/php/) based on Ubuntu 22.04 LTS\n* 7.4-fpm-ubuntu22.04-sury-n - PHP 7.4 from deb.sury.org [PPA](https://launchpad.net/~ondrej/+archive/ubuntu/php/) based on Ubuntu 22.04 LTS\n* 7.4-fpm-n - PHP 7.4 included in the Ubuntu 20.04 LTS distribution\n\nn = build number, higher numbers are newer builds\n\n## Usage\n\nTo download the image run\n\n    docker pull geschke/php-fpm-swrm\n\nThis is a minimalistic approach to build a php-fpm environment. It doesn't\nneed configuration (and there is currently no way to modify the options\nwithout inheriting the image).\nAdditional it installs the Composer dependency manager.\n\nThis image is intended for running as PHP-FPM backend in a Docker swarm mode environment.\n\nFor sure it is possible to start the container with the legacy \"docker run\" command, as seen in the following example.\n\nTo start the container, just run a command like this:\n  \n    docker run -d --name phpfpm -p 127.0.0.1:9000:9000 \\\n         --volume /path/to/your/files/on/host:/var/www/html \\\n         geschke/php-fpm-swrm\n\nIn the above example you will start a container named \"phpfpm\" which mounts\nthe volume /path/to/your/files/on/host to the internal directory\n/var/www/html.\nThe -p option opens the port 9000 on localhost, so any Proxy or web server\ncan reach the php-fpm target. If you want to access from another server,\ni.e. outside the current machine, just use the -p option without limiting\nthe host, e.g. -p 9000:9000. But beware if you expose the port like this - without a firewall your php-fpm\ninstallation is open to the world!\n\n## Usage example with Nginx\n\nTo use Nginx, set up a configuration like this:\n\n    [...|\n    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000\n    #\n    location ~ \\.php$ {\n        # Use the tcp connection\n        fastcgi_pass 127.0.0.1:9000;\n        # ...but not the socket\n        #fastcgi_pass unix:/run/php/php7.0-fpm.sock;\n        fastcgi_index index.php;\n        include fastcgi.conf;\n    }\n    [...]\n\nThe example is from a working configuration of Nginx Ubuntu package. If not\nset in the fastcgi.conf, maybe it's necessary to add the following options:\n\n    fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;\n    fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;\n\nThese options are set as default in the fastcgi.conf file and could be\nchanged in the location settings.\n\nAt last, you have to configure the document root settings. Let's explain by\nexample. The PHP files on your host are installed in:\n\n    /vol/www/phpapp1\n\nSo the volume parameter when starting the container has to be:\n\n    -v /vol/www/phpapp1:/var/www/html\n\nSo inside the Docker container any of your PHP files could be reached within\n/var/www/html.\n\nThen you have to configure the document root as:\n\n    root /var/www/html;\n\nin your Nginx sites configuration file, e.g.\n/etc/nginx/sites-available/default.\n\nYou can change this behaviour if you modify the SCRIPT_FILENAME option in\nthe Nginx fastcgi options.\n\n## Usage example with Docker swarm mode\n\nHave a look at some blog articles at [www.kuerbis.org](https://www.kuerbis.org) (German only, please use Google Translate).\n\n## Credits\n\nThis image is based on the official Ubuntu image, the Ubuntu or deb.sury.org PHP packages and uses\nsome configuration snippets of the official PHP Docker image. Thank you all!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeschke%2Fdocker-php-fpm-swrm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeschke%2Fdocker-php-fpm-swrm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeschke%2Fdocker-php-fpm-swrm/lists"}