I am working with Magento 2.4.2 (Adobe Commerce Enterprise Edition) and have a local site set up using the Magento Cloud Docker setup. I would like to change the nginx timeout setting to be long enough to let a page I'm testing run for as long as it needs to but still render the page on the browser in the frontend.
Is there a specific environment variable that I can set in my docker-compose.yml file to accomplish this? I'm not seeing anything that would make this update in the docker-environment or Dockerfile files. Do I just have to add my own custom lines to either of these files to update the timeout setting?
if you use magento cloud docker development, no you can't without overriding the docker image.
if you want to set nginx timeout, you need to override the nginx docker image and include it in docker-compose.override.yml
. here are the step :
vendor/magento/magento-cloud-docker/images/nginx
to .docker/images/nginx
, i.e like this.docker/images/nginx/1.19/etc/nginx.conf
and .docker/images/nginx/1.19/etc/vhost.conf
docker-compose.override.yml
, like thisdocker-compose up --build --force-recreate --no-deps --remove-orphans -d
check this link for the full example.
Note : the
.docker/config.env
file will be overwritten when you run./vendor/bin/ece-docker 'build:compose'