Я пытаюсь узнать, как настроить настройку PHP/NGINX Docker из этого руководства. К сожалению, когда я пытаюсь смонтировать nginx.conf как упоминалось, я получаю следующую ошибку:

ERROR: for docker_nginx_1  Cannot start service nginx: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/c/www/php_docker/docker/nginx/nginx.conf\\\" to rootfs \\\"/mnt/sda1/var/lib/docker/overlay2/8aa58bb7a5bb80ad62c173973ea3ab627bb5d6be53ecf70bed95221d28852c4c/merged\\\" at \\\"/mnt/sda1/var/lib/docker/overlay2/8aa58bb7a5bb80ad62c173973ea3ab627bb5d6be53ecf70bed95221d28852c4c/merged/etc/nginx/nginx.conf\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

ERROR: for nginx  Cannot start service nginx: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/c/www/php_docker/docker/nginx/nginx.conf\\\" to rootfs \\\"/mnt/sda1/var/lib/docker/overlay2/8aa58bb7a5bb80ad62c173973ea3ab627bb5d6be53ecf70bed95221d28852c4c/merged\\\" at \\\"/mnt/sda1/var/lib/docker/overlay2/8aa58bb7a5bb80ad62c173973ea3ab627bb5d6be53ecf70bed95221d28852c4c/merged/etc/nginx/nginx.conf\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

Вот файл докера, который я создал до сих пор:

version: '3'

services:
  php-fpm:
    build:
      context: ./php
    volumes:
      - ../src:/var/www

  nginx:
    build:
      context: ./nginx
    volumes:
      - ../src:/var/www
      - ./nginx/nginx.conf:/etc/nginx/nginx.conf
      - ./nginx/sites/:/etc/nginx/sites-available
      - ./nginx/conf.d/:/etc/nginx/conf.d
    depends_on:
      - php-fpm
    ports:
      - 80:80
      - 443:443

0