
This environment builds nginx 1.30.0 from source on Ubuntu 22.04 for local HTTP testing. PHP-FPM is configured directly in the Dockerfile because nginx.conf forwards PHP requests to /tmp/php-cgi-80.sock.
docker compose up -d --build
The compose file publishes 80/tcp.
docker compose exec nginx nginx -V
docker compose exec nginx nginx -t
curl http://127.0.0.1/
Logs are written to ./logs.