{"id":19217110,"url":"https://github.com/8ctopus/nginx-php-fpm-alpine","last_synced_at":"2026-04-09T20:03:14.097Z","repository":{"id":109058728,"uuid":"256704596","full_name":"8ctopus/nginx-php-fpm-alpine","owner":"8ctopus","description":"A super light docker web server with nginx and php-fpm on top of Alpine Linux for development purposes","archived":false,"fork":false,"pushed_at":"2020-11-10T09:47:29.000Z","size":83,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T12:09:57.341Z","etag":null,"topics":["alpine-linux","composer","docker","docker-image","https","nginx","php-fpm","xdebug"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/8ctopus.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":"2020-04-18T08:31:39.000Z","updated_at":"2024-03-26T18:08:41.000Z","dependencies_parsed_at":"2023-04-15T01:52:52.015Z","dependency_job_id":null,"html_url":"https://github.com/8ctopus/nginx-php-fpm-alpine","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fnginx-php-fpm-alpine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fnginx-php-fpm-alpine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fnginx-php-fpm-alpine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fnginx-php-fpm-alpine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/8ctopus","download_url":"https://codeload.github.com/8ctopus/nginx-php-fpm-alpine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240292368,"owners_count":19778311,"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":["alpine-linux","composer","docker","docker-image","https","nginx","php-fpm","xdebug"],"created_at":"2024-11-09T14:20:08.184Z","updated_at":"2025-10-24T14:11:41.334Z","avatar_url":"https://github.com/8ctopus.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## project description\n\nA super light docker web server with nginx and php-fpm on top of Alpine Linux for development purposes\n\n- nginx 1.18.0 with SSL\n- php-fpm 7.4.12\n- Xdebug debugging from host\n- Xdebug profiler\n- composer\n- zsh\n\nThe docker image size is 43 MB.\n\n## cool features\n\n- nginx and php configuration files are exposed on the host.\n- Just works with any domain name.\n- https is configured out of the box.\n- All changes to the config files are automatically applied (hot reload).\n- Xdebug is configured for remote debugging (no headaches).\n\n## start container\n\nStarting the container with `docker-compose` offer all container functionalities.\n\n```bash\ndocker-compose up\nCTRL-Z to detach\n\ndocker-compose stop\n```\n\nAlternatively the container can also be started with `docker run`.\n\n```bash\ndocker run -p 80:80 --name web 8ct8pus/nginx-php-fpm-alpine:latest\nCTRL-Z to detach\n\ndocker stop container\n```\n\n## access website\n\n    http://localhost/\n    https://localhost/\n\nThe source code is located inside the `html` directory.\n\n## set domain name\n\nTo set the domain name to www.test.com, edit the environment variable in the docker-compose file\n\n    environment:\n      - DOMAIN=www.test.com\n\nAdd this line to the system host file. Editing the file requires administrator privileges.\n\n    C:\\Windows\\System32\\drivers\\etc\\hosts\n\n    127.0.0.1 test.net www.test.net\n\n## https\n\nTo remove \"Your connection is not private\" nag screens, import the certificate authority file under ssl/certificate_authority.pem in the browser's certificates under Trusted Root Certification Authorities.\n\nguide: https://support.globalsign.com/digital-certificates/digital-certificate-installation/install-client-digital-certificate-windows-using-chrome\n\n## Xdebug debugging\n\nThis github repository is configured to debug php code in Visual Studio Code.\nTo start debugging, open the VSCode workspace then select `Run \u003e Start debugging` then open the site in the browser.\n\nFor other IDEs, set the Xdebug debugging port to 9001.\n\n## Xdebug profiling\n\nThe docker image is configured to profile php code.\nTo start profiling, add the `XDEBUG_PROFILE` variable to the request as a GET, POST or COOKIE.\n\n    http://localhost/?XDEBUG_PROFILE\n\nProfiles are stored in the log directory.\n\n## access container through command line\n\n```bash\ndocker exec -it web zsh\n```\n\n## build docker image\n\n```bash\ndocker build -t nginx-php-fpm-alpine:dev .\n```\n\n## extend docker image\n\nIn this example, we add the php-curl extension.\n\n```bash\ndocker-compose up --detach\ndocker exec -it web zsh\napk add php-curl\nexit\ndocker-compose stop\ndocker commit web nginx-php-fpm-alpine-curl:dev\n```\n\nTo use the new image, update the image link in the docker-compose file.\n\n## more info on php-fpm\n\n    https://php-fpm.org/about/\n\n## notes\n\nIn Windows hot reload doesn't work with WSL 2, you need to use the legacy Hyper-V.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8ctopus%2Fnginx-php-fpm-alpine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F8ctopus%2Fnginx-php-fpm-alpine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8ctopus%2Fnginx-php-fpm-alpine/lists"}