Docker Wordpress container with custom php.ini file settings Docker Wordpress container with custom php.ini file settings docker docker

Docker Wordpress container with custom php.ini file settings


You want increase the maximum uploadable file size for PHPMyAdmin, but uploads.ini you add for your wordpress container)

add volume for phpmyadmin container and you'll be happy=)

# phpmyadminphpmyadmin:depends_on:  - dbimage: phpmyadmin/phpmyadminvolumes: - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.inirestart: alwaysports:  - '8080:80'environment:  PMA_HOST: db  MYSQL_ROOT_PASSWORD: password networks:  - wpsite


You can try to rebuild your image, but like this. Add this somewhere in your your Dockerfile. This way you would be sure its not some kind of permission trouble(which I think it is)

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


You can pass the upload limit to the phpmyadmin docker container with an ENV variable

Example

phpmyadmin:image: phpmyadmin/phpmyadmincontainer_name: phpmyadmindepends_on:  - mysqlenvironment:  - UPLOAD_LIMIT=512M  - PMA_HOST=mysql  - PMA_PORT=3306  - PMA_ARBITRARY=1ports:  - "8888:80"