{"id":16469374,"url":"https://github.com/osminogin/docker-php-fpm","last_synced_at":"2026-04-16T11:02:32.444Z","repository":{"id":28443815,"uuid":"31959115","full_name":"osminogin/docker-php-fpm","owner":"osminogin","description":"Generic PHP-FPM container for your web apps","archived":false,"fork":false,"pushed_at":"2017-10-04T14:08:19.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-14T18:56:46.982Z","etag":null,"topics":["docker","docker-php-fpm","php","php-fpm"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/osminogin/php-fpm/","language":null,"has_issues":false,"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/osminogin.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":"2015-03-10T13:32:21.000Z","updated_at":"2020-11-30T05:07:33.000Z","dependencies_parsed_at":"2022-07-25T17:52:41.783Z","dependency_job_id":null,"html_url":"https://github.com/osminogin/docker-php-fpm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/osminogin/docker-php-fpm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osminogin%2Fdocker-php-fpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osminogin%2Fdocker-php-fpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osminogin%2Fdocker-php-fpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osminogin%2Fdocker-php-fpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osminogin","download_url":"https://codeload.github.com/osminogin/docker-php-fpm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osminogin%2Fdocker-php-fpm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31882886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["docker","docker-php-fpm","php","php-fpm"],"created_at":"2024-10-11T12:07:11.755Z","updated_at":"2026-04-16T11:02:32.421Z","avatar_url":"https://github.com/osminogin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-php-fpm\n\n[![](https://img.shields.io/docker/build/osminogin/php-fpm.svg)](https://hub.docker.com/r/osminogin/php-fpm/builds/) [![](https://img.shields.io/docker/stars/osminogin/php-fpm.svg)](https://hub.docker.com/r/osminogin/php-fpm) [![](https://images.microbadger.com/badges/image/osminogin/php-fpm.svg)](https://microbadger.com/images/osminogin/php-fpm) [![License: MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)\n\n**Secure minimal PHP-FPM container for your web apps.**\n\nJust link with your favorite frontend web server and you ready for production use.\n\nStar this project on Docker Hub :star2: https://hub.docker.com/r/osminogin/php-fpm/\n\n\n## Getting started\n\n\n### Installation\n\nAutomated builds of the image are available on [Docker Hub](https://hub.docker.com/r/osminogin/php-fpm/) and is the recommended method of installation.\n\n```bash\ndocker pull osminogin/php-fpm\n```\n\nAlternatively you can build the image yourself.\n\n```bash\ndocker build -t php-fpm github.com/osminogin/docker-php-fpm\n```\n\n\n### Quickstart\n\n```bash\ndocker run --name webapp -v /var/www:/var/www:ro osminogin/php-fpm\n```\n\nRecommended to mount web application root inside container with same paths (to avoid confusion).\n\n:exclamation:**Warning**:exclamation:\n\nAlways link this container to web server directly and not expose 9000 port for security reasons.\n\n\n## Unit file for systemd\n\n#### php-fpm.service:\n```ini\n[Unit]\nDescription=FluxBB service\nAfter=docker.service mariadb.service nginx.service\nRequires=docker.service\nWants=mariadb.service nginx.service\n\n[Service]\nTimeoutStartSec=0\nRestart=always\nRestartSec=35s\nExecStartPre=/usr/bin/docker pull osminogin/php-fpm\nExecStart=/usr/bin/docker run --rm --name webapp --link nginx:nginx --link mariadb:mysqlhost -v /var/www:/var/www:ro osminogin/php-fpm\nExecStop=/usr/bin/docker stop webapp\n\n[Install]\nWantedBy=multi-user.etarget\n```\n\n\n## Examples\n\nExample php webapp deployment config in cooperation with official Nginx and MariaDB containers.\n\n#### docker-compose.yml\n\n```yaml\nversion: '2'\nservices:\n  webapp:\n    image: osminogin/php-fpm\n    container_name: webapp\n    volumes:\n      - /srv/webroot:/srv/webroot\n    links:\n      - mysql\n  nginx:\n    image: nginx\n    ports:\n      - \"80:80\"\n      - \"443:443\"\n    links:\n      - webapp\n    volumes:\n      - /srv/nginx.conf:/etc/nginx/nginx.conf:ro\n    volumes_from:\n      - webapp:ro\n  mysql:\n    image: mariadb\n    environment:\n      MYSQL_ROOT_PASSWORD: changeme\n```\n\nCorresponding server section of ``nginx.conf``:\n\n```\nserver {\n    listen 80;\n    root /srv/webroot;\n\n    location / { rewrite ^ /index.php; }\n\n    location ~ \\.php$ {\n        fastcgi_split_path_info ^(.+\\.php)(/.+)$;\n        include fastcgi_params;\n        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;\n        fastcgi_pass webapp:9000;\n    }\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosminogin%2Fdocker-php-fpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosminogin%2Fdocker-php-fpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosminogin%2Fdocker-php-fpm/lists"}