瀏覽代碼

Improved Nginx configuration for Docker Compose

main
Simon Bowie 3 年之前
父節點
當前提交
419affb809
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. +1
    -1
      docker-compose.yml
  2. +1
    -0
      nginx-conf/patent_site.conf

+ 1
- 1
docker-compose.yml 查看文件

ports: ports:
- '8080:80' - '8080:80'
volumes: volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx-conf:/etc/nginx/conf.d
volumes_from: volumes_from:
- php - php



nginx/default.conf → nginx-conf/patent_site.conf 查看文件

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;
} }
} }

Loading…
取消
儲存