Can not upload files greater than 1 mb in php and nginx

Tried editing nginx file and uploads.ini

uploads.ini given as

RUN touch /usr/local/etc/php/conf.d/uploads.ini \
    && echo "file_uploads = On" >> /usr/local/etc/php/conf.d/uploads.ini \
    && echo "memory_limit = 64M" >> /usr/local/etc/php/conf.d/uploads.ini \
    && echo "upload_max_filesize = 64M" >> /usr/local/etc/php/conf.d/uploads.ini \
    && echo "post_max_size = 64M" >> /usr/local/etc/php/conf.d/uploads.ini \
    && echo "max_execution_time = 600" >> /usr/local/etc/php/conf.d/uploads.ini

default.conf given as

client_max_body_size 20M;
client_body_buffer_size 10M;
server {
    listen 80;
    index index.php index.html;
    server_name localhost;

But getting error nginx 500

Hi

What error does the log show?
Are you sure about the location of the php config file?
Have you tried to “exec” into the container and see if /usr/local/etc/php/conf.d/uploads.ini appears to be OK?

What image are you using ?