Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.

Commit 70016f3

Browse files
committed
Docker: phpmyadmin container - inscrease upload limit
1 parent 207c283 commit 70016f3

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

config/docker/phpmyadmin/config.inc.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
2-
32
/* vim: set expandtab sw=4 ts=4 sts=4: */
3+
44
/**
55
* phpMyAdmin sample configuration, you can use it as base for
66
* manual configuration. For easier setup you can use setup/.
@@ -65,10 +65,6 @@
6565
$cfg['Servers'][$i]['password'] = getenv('PMA_PASSWORD');
6666
$cfg['Servers'][$i]['hide_db'] = '^(information_schema|performance_schema|mysql|phpmyadmin)$';
6767

68-
// Augmenter upload
69-
ini_set('post_max_size', '200M');
70-
ini_set('upload_max_filesize', '200M');
71-
7268
/* Storage database and tables */
7369
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
7470
// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';

config/docker/phpmyadmin/uploads.ini

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
file_uploads = On
2+
memory_limit = 200M
3+
upload_max_filesize = 200M
4+
post_max_size = 200M
5+
max_execution_time = 600

docker-compose.dev.yml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ services:
2727
- 80
2828
volumes:
2929
- ./config/docker/phpmyadmin/config.inc.php:/etc/phpmyadmin/config.user.inc.php
30+
- ./config/docker/phpmyadmin/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
3031
depends_on:
3132
- db
3233
links:

0 commit comments

Comments
 (0)