• Resolved cvanvlack

    (@cvanvlack)


    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_network

    Here is the contents of uploads.ini

    file_uploads = On
    memory_limit = 2048M
    upload_max_filesize = 2048M
    post_max_size = 2048M
    max_execution_time = 6000

    According 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?

    • This topic was modified 1 year, 3 months ago by cvanvlack.
Viewing 1 replies (of 1 total)
  • Plugin Author Yani

    (@yaniiliev)

    It looks like you’ve taken the right steps to increase the upload limits in your Docker setup. However, large imports can sometimes be affected by additional server configurations, PHP settings, or resource constraints within the containerized environment.

    To help diagnose the issue, you may want to check:
    1. Nginx/Apache settings (if applicable) for request size limits.
    2. Any error logs in your WordPress instance or server.
    3. The PHP-FPM configuration (if used) for upload handling.

    For a faster resolution, our Unlimited Extension comes with premium support, where our team can assist you in troubleshooting and optimizing your setup for large imports.

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.