{"id":19022604,"url":"https://github.com/wandersonwhcr/docker-nginx-php-fpm","last_synced_at":"2025-04-23T08:25:11.632Z","repository":{"id":53006263,"uuid":"347248716","full_name":"wandersonwhcr/docker-nginx-php-fpm","owner":"wandersonwhcr","description":"Docker (+ Traefik) + NGINX + PHP-FPM = The Right Way","archived":false,"fork":false,"pushed_at":"2021-04-10T01:44:12.000Z","size":42,"stargazers_count":7,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T22:10:00.744Z","etag":null,"topics":["docker","docker-compose","kubernetes","nginx","php-fpm","slim-framework","traefik"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/wandersonwhcr.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":"2021-03-13T02:05:05.000Z","updated_at":"2025-04-14T21:03:41.000Z","dependencies_parsed_at":"2022-09-08T05:01:15.115Z","dependency_job_id":null,"html_url":"https://github.com/wandersonwhcr/docker-nginx-php-fpm","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wandersonwhcr%2Fdocker-nginx-php-fpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wandersonwhcr%2Fdocker-nginx-php-fpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wandersonwhcr%2Fdocker-nginx-php-fpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wandersonwhcr%2Fdocker-nginx-php-fpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wandersonwhcr","download_url":"https://codeload.github.com/wandersonwhcr/docker-nginx-php-fpm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250397075,"owners_count":21423742,"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-compose","kubernetes","nginx","php-fpm","slim-framework","traefik"],"created_at":"2024-11-08T20:26:59.697Z","updated_at":"2025-04-23T08:25:11.614Z","avatar_url":"https://github.com/wandersonwhcr.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-nginx-php-fpm\n\nDocker (+ Traefik) + NGINX + PHP-FPM = The Right Way\n\n## Run\n\n```\ndocker-compose up --detach\ndocker-compose exec php-fpm composer install\n\ndocker-compose up --detach \\\n    --scale nginx=3 \\\n    --scale php-fpm=3\n```\n\n## Production\n\n```\ndocker build . --tag wandersonwhcr/hello\n```\n\n## Deployment\n\n* Docker\n\n```\ndocker network create hello\n\ndocker run \\\n    --detach \\\n    --hostname php-fpm \\\n    --name hello_php-fpm \\\n    --network hello \\\n    wandersonwhcr/hello\n\ndocker run \\\n    --detach \\\n    --hostname nginx \\\n    --name hello_nginx \\\n    --network hello \\\n    --volume `pwd`/docker-compose/nginx/templates:/etc/nginx/templates \\\n    nginx:1.19\n```\n\n* Kubernetes\n\n```\nkubectl apply --filename ./kubernetes/ --recursive\n```\n\n## References\n\n* [renatomefi/php-fpm-healthcheck](https://github.com/renatomefi/php-fpm-healthcheck) POSIX sh Script to HealthCheck PHP-FPM\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwandersonwhcr%2Fdocker-nginx-php-fpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwandersonwhcr%2Fdocker-nginx-php-fpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwandersonwhcr%2Fdocker-nginx-php-fpm/lists"}