我正试图用Nginx和PHP7在Docker上设置Magento2.
我已经按照PHP7 Docker镜像的建议添加了一个自定义的php.ini文件.我可以从phpinfo.php看到它正在加载我的php.ini文件,但我的更新都没有.

它应该是:
memory_limit = 2G
max_execution_time = 800
Run Code Online (Sandbox Code Playgroud)
我检查了PHP容器,我可以看到php.ini文件中有正确的设置,或者我认为?
$ docker exec -it mymagento2docker_php_1 /bin/bash
# cat /usr/local/etc/php/php.ini
; This file is created automatically by the docker build
memory_limit = 2G
max_execution_time = 800
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?以下是一些更多细节,提前感谢!
.
??? docker-compose.yml
??? index.php
??? magento2
? ??? [DIRECTORIES & FILES OMMITED]
?
??? nginx
? ??? Dockerfile
? ??? default.conf
? ??? nginx.conf
??? output.txt
??? php
??? Dockerfile
??? config
??? php.ini
Run Code Online (Sandbox Code Playgroud)
nginx:
build: ./nginx/
ports: …Run Code Online (Sandbox Code Playgroud)