Skip to content

Commit

Permalink
Add user config and php config for phpmyadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
yeszao committed Oct 29, 2019
1 parent 32bf10b commit b8f1ad9
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ services:
# container_name: phpmyadmin
# ports:
# - "${PHPMYADMIN_HOST_PORT}:80"
# volumes:
# - ${PHPMYADMIN_USER_CONF_FILE}:/etc/phpmyadmin/config.user.inc.php:ro
# - ${PHPMYADMIN_PHP_CONF_FILE}:/usr/local/etc/php/conf.d/php-phpmyadmin.ini:ro
# networks:
# - default
# environment:
Expand Down
2 changes: 2 additions & 0 deletions env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ MEMCACHED_CACHE_SIZE=128
# phpMyAdmin
#
PHPMYADMIN_HOST_PORT=8080
PHPMYADMIN_USER_CONF_FILE=./services/phpmyadmin/config.user.inc.php
PHPMYADMIN_PHP_CONF_FILE=./services/phpmyadmin/php-phpmyadmin.ini

#
# redisMyAdmin
Expand Down
4 changes: 4 additions & 0 deletions services/phpmyadmin/config.user.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
/**
* @example https://docs.phpmyadmin.net/en/latest/config.html
*/
20 changes: 20 additions & 0 deletions services/phpmyadmin/php-phpmyadmin.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[PHP]
allow_url_fopen = Off
max_execution_time = 600
memory_limit = 512M
open_basedir = /var/www/html:/tmp/:/etc/phpmyadmin/
post_max_size = 512M
upload_max_filesize = 512M

[Session]
session.cookie_httponly = 1
session.hash_function = 1
session.save_path = "/sessions"
session.use_strict_mode = 1

[opcache]
opcache.fast_shutdown = 1
opcache.restrict_api = /disabled/
opcache.save_comments = 0
opcache.use_cwd = 0
opcache.validate_timestamps = 0

0 comments on commit b8f1ad9

Please sign in to comment.