docker icon indicating copy to clipboard operation
docker copied to clipboard

Make Nginx document root configurable

Open michaelrog opened this issue 2 years ago • 0 comments

It'd be super helpful for the PHP/Nginx images to allow customizing the document root by env variable.

Something like:

web:
  image: craftcms/nginx:8.1
  ports:
    - "8080:8080"
  environment:
    PHP_MEMORY_LIMIT: 512M
    ...
    NGINX_DOCUMENT_ROOT: "/web"
    depends_on:
      - "mysql"
    volumes:
      - .:/app

michaelrog avatar May 04 '23 04:05 michaelrog