Docker PHP Increase Upload Limit

uploads.ini:

file_uploads = On
memory_limit = 500M
upload_max_filesize = 500M
post_max_size = 500M
max_execution_time = 600

docker-compose.yml:

volumes: 
   - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.iniCode language: JavaScript (javascript)

or Dockerfile:

COPY ./uploads.ini /usr/local/etc/php/conf.d/uploads.ini

Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.