- HTTPS support (with or without mkcert)
- Default Magento 2 configuration
services:
# [...]
nginx:
image: ajardin/magento2-nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
# Project files
- ${PROJECT_LOCATION}:/var/www/html:delegated
# SSL certificates
- ${PROJECT_LOCATION}/var/docker/nginx/certs:/etc/nginx/ssl:cached
# Custom configuration
- ${PROJECT_LOCATION}/var/docker/nginx/custom.conf:/etc/nginx/conf.d/custom.conf:ro
depends_on:
- php
tty: true
# [...]