Phpmyadmin 413 request body too largge

Im using docker and I have 3 services. An api service, a mysql service and phpmyadmin service. When I try to import an .sql file I get a 413 Request body too large error.

I have tried changing the nginx.conf settings in my phpmyadmin service, and the php.ini one with no luck. Basically everytime I bash into my container in order to change the configuration settings I seem to get stuck.

This is my docker-compose.yml file.

version: '3.7'

services:

  api:
    image: thecodingmachine/php:7.4-v3-apache-node12
    container_name: something
    environment:
      APACHE_DOCUMENT_ROOT: project/public/
      PHP_INI_MEMORY_LIMIT: 512M
      PHP_INI_POST_MAX_SIZE: 256M
      PHP_INI_UPLOAD_MAX_FILESIZE: 256M
      # Disable XDebug in production
      PHP_EXTENSION_XDEBUG: 0
      PHP_INI_ERROR_REPORTING: E_ALL
      PHP_INI_XDEBUG__IDEKEY: VSCODE
      PHP_INI_XDEBUG__CLI_COLOR: 1
      PHP_INI_XDEBUG__REMOTE_PORT: 9000
      PHP_INI_XDEBUG__SHOW_LOCAL_VARS: 1
      PHP_INI_XDEBUG__REMOTE_AUTOSTART: 1
      # Symfony
      APP_ENV: dev
      APP_SECRET: something
      DATABASE_URL: something
      # STARTUP_COMMAND_1: composer install && bin/console doctrine:migrations:migrate --no-interaction
      # STARTUP_COMMAND_2: yarn install && yarn watch &
    volumes:
      - ./api:/var/www/html:rw
    networks:
      - default
    restart: always
        
  mysql:
    image: mysql:5.7
    container_name: something
    environment:
      MYSQL_ROOT_PASSWORD: strong
      MYSQL_DATABASE: strong
      MYSQL_USER: strong
      MYSQL_PASSWORD: strong
    volumes:
      - mysql_data:/var/lib/mysql
      - ./services/mysql/utf8mb4.cnf:/etc/mysql/conf.d/utf8mb4.cnf:ro
      - ./database:/database:rw
    restart: always
    
  phpmyadmin:
    image: phpmyadmin/phpmyadmin:4.7
    container_name: project
    environment:
      PMA_HOST: local
      PMA_USER: some
      PMA_PASSWORD: some
    networks:
      - default

  
volumes:
  
  mysql_data:
    driver: local

networks:
  default:
    external:
      name: local

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *