Skip to content

Commit b8f1ad9

Browse files
committed
Add user config and php config for phpmyadmin
1 parent 32bf10b commit b8f1ad9

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

docker-compose.sample.yml

+3
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ services:
177177
# container_name: phpmyadmin
178178
# ports:
179179
# - "${PHPMYADMIN_HOST_PORT}:80"
180+
# volumes:
181+
# - ${PHPMYADMIN_USER_CONF_FILE}:/etc/phpmyadmin/config.user.inc.php:ro
182+
# - ${PHPMYADMIN_PHP_CONF_FILE}:/usr/local/etc/php/conf.d/php-phpmyadmin.ini:ro
180183
# networks:
181184
# - default
182185
# environment:

env.sample

+2
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ MEMCACHED_CACHE_SIZE=128
177177
# phpMyAdmin
178178
#
179179
PHPMYADMIN_HOST_PORT=8080
180+
PHPMYADMIN_USER_CONF_FILE=./services/phpmyadmin/config.user.inc.php
181+
PHPMYADMIN_PHP_CONF_FILE=./services/phpmyadmin/php-phpmyadmin.ini
180182

181183
#
182184
# redisMyAdmin
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
/**
3+
* @example https://docs.phpmyadmin.net/en/latest/config.html
4+
*/
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[PHP]
2+
allow_url_fopen = Off
3+
max_execution_time = 600
4+
memory_limit = 512M
5+
open_basedir = /var/www/html:/tmp/:/etc/phpmyadmin/
6+
post_max_size = 512M
7+
upload_max_filesize = 512M
8+
9+
[Session]
10+
session.cookie_httponly = 1
11+
session.hash_function = 1
12+
session.save_path = "/sessions"
13+
session.use_strict_mode = 1
14+
15+
[opcache]
16+
opcache.fast_shutdown = 1
17+
opcache.restrict_api = /disabled/
18+
opcache.save_comments = 0
19+
opcache.use_cwd = 0
20+
opcache.validate_timestamps = 0

0 commit comments

Comments
 (0)