phpMyAdmin Docker#
A web interface for MySQL and MariaDB
Demo#
Docker#
docker run --name phpmyadmin -d -e PMA_HOST=dbhost -p 8080:80 phpmyadmin:5.1
Docker Compose#
phpmyadmin.yml
version: '3.1'
services:
db:
image: mariadb:10.3
restart: always
environment:
MYSQL_ROOT_PASSWORD: notSecureChangeMe
phpmyadmin:
image: phpmyadmin:5.1
restart: always
ports:
- 8080:80
environment:
- PMA_ARBITRARY=1
Environment variables summary#
PMA_ARBITRARY- when set to 1 connection to the arbitrary server will be allowedPMA_HOST- define address/host name of the MySQL serverPMA_VERBOSE- define verbose name of the MySQL serverPMA_PORT- define port of the MySQL serverPMA_HOSTS- define comma separated list of address/host names of the MySQL serversPMA_VERBOSES- define comma separated list of verbose names of the MySQL serversPMA_PORTS- define comma separated list of ports of the MySQL serversPMA_USERandPMA_PASSWORD- define username to use for config authentication methodPMA_ABSOLUTE_URI- define user-facing URIHIDE_PHP_VERSION- if defined, will hide the php version (expose_php = Off). Set to any value (such asHIDE_PHP_VERSION=true).UPLOAD_LIMIT- if set, will override the default value for apache and php-fpm (default value is 2048 kb)PMA_CONFIG_BASE64- if set, will override the defaultconfig.inc.phpwith the base64 decoded contents of the variablePMA_USER_CONFIG_BASE64- if set, will override the defaultconfig.user.inc.phpwith the base64 decoded contents of the variable
Screenshots#







