Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 968 Bytes

README.md

File metadata and controls

35 lines (31 loc) · 968 Bytes

Nginx images for Magento 2

Image pulls

✨ Features

🐳 Supported tags

  • Image size (latest)

🚀 Usage

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
# [...]