Docker Lumen Nginx资产路径问题

Docker Lumen Nginx资产路径问题,docker,nginx,configuration,lumen,Docker,Nginx,Configuration,Lumen,在docker容器中为Lumen配置以下nginx Docker compose nginx服务 version: '3' services: nginx: container_name: ${PROJECT_SUFFIX}_nginx build: docker/nginx command: nginx -g "daemon off;" links: - php ports: - "8099:80

在docker容器中为Lumen配置以下nginx

Docker compose nginx服务

version: '3'
services:
  nginx:
    container_name: ${PROJECT_SUFFIX}_nginx
    build: docker/nginx
    command: nginx -g "daemon off;"
    links:
      - php
    ports:
      - "8099:80"
    #volumes:
    #  - ./app/public:/var/www/html/app/public
Docker安装

FROM nginx:1.17-alpine
ADD nginx.conf /etc/nginx/conf.d/default.conf
内腔

server {
  listen 80;
  root /var/www/html/public;
  index index.php index.htm index.html;

  location / {
      try_files $uri $uri/ /index.php?$query_string;
  }

  location /index.php {
      include fastcgi_params;
      fastcgi_connect_timeout 10s;
      fastcgi_read_timeout 10s;
      fastcgi_buffers 256 4k;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_pass php:9000;
  }
}

没有加载任何资产文件。我得到了404(
示例http://localhost:8099/front/css/app.css
)作为响应,但路径是正确的。如何正确调试此问题

未加载的示例URL是什么?该文件如何进入容器?@DavidMaze我更新了我的问题该文件如何进入容器?(或者后端PHP脚本会返回它吗?)除非您
复制它,否则构建的图像中不会有任何内容。