title: How to override upload_max_filesize in php.ini in docker image
body: <p>I have this docker-compose.yml (part of the main file)</p>
  <pre><code>services:
  my-site:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: my-site
    environment:
      VIRTUAL_HOST: my-site.local
      PHP_INI_SCAN_DIR: &quot;/usr/local/etc/php/custom.d:/usr/local/etc/php/conf.d&quot;
      TZ: Europe/Paris
    ports:
      - &quot;9090:80&quot;
    volumes:
      - ./../myapp:/var/www/my-site
      - ./app/config/custom.php.ini:/usr/local/etc/php/custom.d
  phpmyadmin:
     image: phpmyadmin/phpmyadmin
     container_name: phpmyadmin
     hostname: phpmyadmin.local
     ports :
        - &quot;8080:80&quot;
     environment:
        - PMA_HOST=mysql
        - PMA_USER=root
        - PMA_PASSWORD=password
     links:
        - mysql:mysql
     volumes:
        - ./app/config/php.ini:/usr/local/etc/php/php.ini
  </code></pre>
  <p>In webapp cli</p>
  <p><a href="https://i.stack.imgur.com/ldWUH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ldWUH.jpg" alt="enter image description here" /></a></p>
  <p>In phpmyadmin cli</p>
  <p><a href="https://i.stack.imgur.com/p90AQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p90AQ.jpg" alt="enter image description here" /></a></p>
  <p>Though it's the same file but it doesn't load it</p>
  <p>And can't upload a database more than 2MB</p>
  <p><a href="https://i.stack.imgur.com/cup3a.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cup3a.jpg" alt="enter image description here" /></a></p>
  <p>How can I change this value <code>upload_max_filesize</code> and <code>post_max_size</code> in php.ini in docker image</p>