- Define HTTP-only Nginx configuration with structured JSON logging and PHP-FPM upstream. - Add gzip compression, CORS headers, and request ID handling for local development. - Expose Nginx on port 80 with Docker Compose override file.
11 lines
260 B
YAML
11 lines
260 B
YAML
version: '3.9'
|
|
|
|
services:
|
|
nginx:
|
|
# Use HTTP-only Nginx config for local development
|
|
volumes:
|
|
- ./services/nginx/nginx.dev.conf:/etc/nginx/nginx.conf:ro
|
|
# Expose only port 80 locally; HTTPS (443) not needed in dev
|
|
ports:
|
|
- "80:80"
|