{"id":16316788,"url":"https://github.com/makasim/docker-nginx-php-fpm","last_synced_at":"2025-09-10T17:42:31.055Z","repository":{"id":17325974,"uuid":"79921321","full_name":"makasim/docker-nginx-php-fpm","owner":"makasim","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-08T14:43:26.000Z","size":53,"stargazers_count":9,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T09:51:08.825Z","etag":null,"topics":["docker","nginx","php-fpm"],"latest_commit_sha":null,"homepage":"","language":"Smarty","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/makasim.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-24T14:57:10.000Z","updated_at":"2023-12-21T08:54:40.000Z","dependencies_parsed_at":"2024-10-28T14:56:36.584Z","dependency_job_id":"e9c6ab05-df5a-4a26-9fcf-90689f5920fe","html_url":"https://github.com/makasim/docker-nginx-php-fpm","commit_stats":{"total_commits":46,"total_committers":5,"mean_commits":9.2,"dds":"0.26086956521739135","last_synced_commit":"d415748f0581c0164af493815c0b3f0f79b566d6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/makasim/docker-nginx-php-fpm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makasim%2Fdocker-nginx-php-fpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makasim%2Fdocker-nginx-php-fpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makasim%2Fdocker-nginx-php-fpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makasim%2Fdocker-nginx-php-fpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makasim","download_url":"https://codeload.github.com/makasim/docker-nginx-php-fpm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makasim%2Fdocker-nginx-php-fpm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271854475,"owners_count":24834453,"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-08-24T02:00:11.135Z","response_time":111,"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","nginx","php-fpm"],"created_at":"2024-10-10T22:05:37.684Z","updated_at":"2025-08-24T11:33:15.105Z","avatar_url":"https://github.com/makasim.png","language":"Smarty","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-nginx-php-fpm\n\n## Usage\n\nLet's say you have `/home/user/app/web` folder which web root of your project. \nIf the file physically exists on filesystem it is served by nginx. \nIf file not present Nginx proxy a request to PHP-FPM.\nThere must be a `app.php` inside the folder.\n\n```bash\necho \"\u003c?php phpinfo();\" \u003e app.php\necho \"\u003ch1\u003eHello world\u003c/h1\u003e\" \u003e hello.html\n\ndocker run -d -p 8080:80 -v `pwd`:/var/www/html formapro/nginx-php-fpm\n\ncurl -X GET localhost:8080 # runs app.php and outputs phpinfo\ncurl -X GET localhost:8080/hello.html # shows Hello world\n```\n\n## Env vars\n\nHere's available env vars and their default values:\n\n```\nNGINX_WEB_ROOT=     /var/www/html\nNGINX_PHP_FALLBACK= /index.php\nNGINX_PHP_LOCATION= ^/index\\.php(/|$$)\nNGINX_USER=         www-data\nNGINX_CONF=         /etc/nginx/nginx.conf\n\nPHP_SOCK_FILE=      /run/php.sock\nPHP_USER=           www-data\nPHP_GROUP=          www-data\nPHP_MODE=           0660\nPHP_FPM_CONF=       /etc/php/7.0/fpm/php-fpm.conf\n```\n\n## XDebug on Mac\n\n* To enable xdebug mount xdebug configuration file to: `/etc/php/7.0/mods-available/xdebug.ini`  \n* Set fake ip on the docker host: `sudo ifconfig lo0 alias 172.10.0.1`  \n* For PHPStorm set container env: `PHP_IDE_CONFIG: 'serverName=server.loc'` where 'server.loc' - PHPStorm server name  \n\n```ini\n; xdebug.ini\nzend_extension=xdebug.so\nxdebug.profiler_enable = Off\nxdebug.profiler_enable_trigger = Off\nxdebug.max_nesting_level = 5000\nxdebug.remote_enable = On\nxdebug.remote_host = 172.10.0.1\n```\n\n## Enable HTTPS\n\n*Use it only locally.*\n \nGenerate self-signed certificates:\n\n```\nopenssl req -newkey rsa:2048 -sha256 -nodes -keyout YOURPRIVATE.key -x509 -days 365 -out YOURPUBLIC.pem -subj \"/C=US/ST=New York/L=Brooklyn/O=Example Brooklyn Company/CN=YOURDOMAIN.EXAMPLE\"\n```\n\nRun container with additional env vars:\n\n```\ndocker run -d -p443:443 -v `pwd`:/var/www/html -e NGINX_SSL_PUBLIC_CERTIFICATE=/var/www/html/YOURPUBLIC.pem -e NGINX_SSL_PRIVATE_CERTIFICATE=/var/www/html/YOURPRIVATE.key formapro/nginx-php-fpm:latest\n\ncurl https://localhost:443 --insecure\n```\n\n## Developed by Forma-Pro\n\nForma-Pro is a full stack development company which interests also spread to open source development. \nBeing a team of strong professionals we have an aim an ability to help community by developing cutting edge solutions in the areas of e-commerce, docker \u0026 microservice oriented architecture where we have accumulated a huge many-years experience. \nOur main specialization is Symfony framework based solution, but we are always looking to the technologies that allow us to do our job the best way. We are committed to creating solutions that revolutionize the way how things are developed in aspects of architecture \u0026 scalability.\n\nIf you have any questions and inquires about our open source development, this product particularly or any other matter feel free to contact at opensource@forma-pro.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakasim%2Fdocker-nginx-php-fpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakasim%2Fdocker-nginx-php-fpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakasim%2Fdocker-nginx-php-fpm/lists"}