Skip to content

rkcreation/docker-phpmyadmin

Repository files navigation

Docker PHPMyAdmin

Docker Cloud Build Status Docker Pulls Docker Stars GitHub stars GitHub last commit

General config

  • UPLOAD_PATH
  • STACK_NAME - defaults to dev
  • APPLICATION_ENV - defaults to null
  • LOGIN_EXPIRATION - defaults to 24h (in seconds)

Use custom theme

  • CUSTOM_THEME - defaults to fallen
  • CUSTOM_THEME_VERSION - defaults to 0.7

Settings

  • Exports : pre-configured exports with STACK_NAME-APPLICATION_ENV--DB--TIME.sql.gz

Multi-server

Supports config.servers.inc.php.

Build a config.servers.inc.php file, with content :

$i++;
$cfg['Servers'][$i]['verbose'] = 'Database Server 2';
$cfg['Servers'][$i]['host'] = '192.168.1.102';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['AllowNoPassword'] = false;

Example with docker-gen

See phpmyadmin-servers.tmpl.

Use PHPMYADMIN_SERVER on mysql containers.

In a docker-compose.yml file :

# Start PHPMyAdmin service with docker-gen
docker network create phpmyadmin
docker-compose -f docker-compose.example_phpmyadmin.yml up -d
# Start mysql containers
docker-compose -f docker-compose.example_mysql.yml up -d

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published