phpMyAdmin software tool is an opensource and it's written in PHP Language, Intended to manage and administration of MySQL over the Web. phpMyAdmin tool can support for both MySQL and MariaDB.
Frequently used operations (managing databases, columns, relations, indexes, tables, users, permissions, updates and etc) user can handle on the console window.
This post will install the phpMyAdmin and runs on the Docker container.
Before you would run the PHPMyAdmin tool on your docker container Install necessary packages, docker server and docker-compose package on your instance and follow the steps here,
Create a docker-compose.yml file and add the codes below,
version: '3.1'
services:
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin
restart: always
ports:
- 8080:80
environment:
- PMA_ARBITRARY=5
- PMA_HOST="ENTER YOUR DATBASE HOSTNAME"
Execute the docker-compose.yml file using the docker-compose command, see the command below,
$ docker-compose up -d
the docker-compose would take the default name "docker-compose.yml" on the root location, If you would like to use with parameter,
$ docker-compose -f docker-compose.yml up -d
$ docker container ls
You will see the container listing output like below,
c035393d04q1 phpmyadmin "/docker-entrypoint.…" a minute ago Up 4 weeks 0.0.0.0:8080->80/tcp phpmyadmin
Open your web browser and use the url:
Comments (0)