{"agent":"codex","input":"Add an nginx reverse proxy to the react-express-mysql Compose sample. Read compose.yaml, backend/Dockerfile, backend/src/server.js, backend/healthcheck.js, frontend/Dockerfile, frontend/src/setupProxy.js, frontend/src/App.js, the sample README and nginx-golang-mysql/compose.yaml and its proxy/nginx.conf first. Add proxy/nginx.conf with location /api/ passing to http://backend:80/ so the prefix is stripped as setupProxy.js does, and location / passing to http://frontend:3000 with proxy_http_version 1.1 and the Upgrade and Connection headers so the dev server's hot-reload WebSocket works. Add a proxy service on the nginx image with the config bind-mounted read-only, publishing 80 on the public network, depending on backend with condition service_healthy and on frontend with service_started. Replace ports with expose on frontend and backend, keeping only the 9229 and 9230 debugger ports published. Update the README to one entry point. Run docker compose up -d --build, wait for the backend to be healthy, curl localhost/api/ and localhost/, confirm the old host ports are closed, check the proxy log for the WebSocket upgrade, run docker compose down -v, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}