Changing Upload limit doesn’t seem to help when using a Docker Container
-
Here is our docker compose file
services:
db:
image: mysql:8.0.27
platform: linux/x86_64
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- ./docker_files/mqsqldata:/var/lib/mysql:delegated
restart: always
networks:
- backend
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_DATABASE=
- MYSQL_USER=
- MYSQL_PASSWORD=
expose:
- 3306
- 33060
wordpress:
depends_on:
- db
image: wordpress:latest
volumes:
- ./docker_files/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./docker_files/error-logging.ini:/usr/local/etc/php/conf.d/error-logging.ini
- ./test_theme:/var/www/html/wp-content/themes/test_theme
- ./docker_files/vendor:/var/www/html/vendor
- ./docker_files/plugins:/var/www/html/wp-content/plugins
- ./docker_files/mu-plugins:/var/www/html/wp-content/mu-plugins
- ./docker_files/uploads:/var/www/html/wp-content/uploads
- ./docker_files/logs:/var/www/html/wp-content/logs
ports:
- 80:80
restart: always
networks:
- backend
environment:
- WORDPRESS_DEBUG=1
- WORDPRESS_DB_HOST=
- WORDPRESS_DB_USER=
- WORDPRESS_DB_PASSWORD=
- WORDPRESS_DB_NAME=
# Non default compose profile. Currently used for initial setup.
phpMyAdmin:
image: phpmyadmin
depends_on:
- db
profiles:
- phpMyAdmin
ports:
- 8080:80
networks:
- backend
environment:
- PMA_ARBITRARY=1
networks:
backend:
name: backend_networkHere is the contents of uploads.ini
file_uploads = On
memory_limit = 2048M
upload_max_filesize = 2048M
post_max_size = 2048M
max_execution_time = 6000According to this: https://stackoverflow.com/questions/42983276/wordpress-docker-wont-increase-upload-limit
That should be sufficient. I can see the newly changed upload limit.
However, when I upload a large website I still get this error

I even tried manually modifying the files as described here in the docker container: https://help.servmask.com/2018/10/27/how-to-increase-maximum-upload-file-size-in-wordpress/


Any suggestions?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Changing Upload limit doesn’t seem to help when using a Docker Container’ is closed to new replies.