Docker compose for PHP 8 and Nginx
Here's a Docker Compose configuration for PHP 8, using Nginx as the web server:
YAML
version: '3.8'
services:
nginx:
image: nginx:1.25-alpine
ports:
- "80:80"
volumes:
- ./app:/var/www/html
- ./nginx/default.conf:/etc...
iamthecode.hashnode.dev2 min read