Skip to content

DEPLOYMENT.md's standalone/cloud recipes point a load balancer directly at php-fpm with no reverse proxy — none of them will work #155

Description

@morcen

What: Several deployment recipes in DEPLOYMENT.md run the app's production Docker target standalone and route external HTTP traffic straight to the container's exposed port, but that target only runs supervisordphp-fpm, which speaks FastCGI, not HTTP.

Where:

  • Dockerfile:87-94 (production stage) — only starts supervisord, which only runs php-fpm on port 9000; nginx is a separate container only wired up in docker-compose.yml, not present in this image
  • DEPLOYMENT.md:27-34docker run -p 80:9000 ...
  • DEPLOYMENT.md:113-127 — Heroku recipe (ENV PORT=8080, sed -i 's/9000/$PORT/g')
  • DEPLOYMENT.md:129-145 — Google Cloud Run recipe
  • DEPLOYMENT.md:159-190 — AWS ECS recipe (containerPort: 9000)

Why it matters: Any of these recipes followed as written will receive raw HTTP requests at a port that only understands FastCGI — the deployments fail outright, not just misbehave. This affects every non-docker-compose deployment path documented in the file.

Suggested fix: Either document that these targets require an nginx (or other FastCGI-aware) reverse proxy/sidecar in front of php-fpm, or add a combined nginx+php-fpm build stage/target that these single-container platforms (Heroku, Cloud Run, ECS) can actually use directly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions