phpMyAdmin
A web-based MySQL/MariaDB management tool for databases
#database #Screenshots
Getting Started
- Create a folder and move to it
mkdir phpmyadmin && cd phpmyadmin
- Create a
docker-compose.yml
file and add the following content:docker-compose.ymlservices: mysql: image: mysql:8.0 container_name: mysql_db restart: always environment: MYSQL_ROOT_PASSWORD: rootpassword MYSQL_DATABASE: exampledb MYSQL_USER: admin MYSQL_PASSWORD: admin volumes: - mysql_data:/var/lib/mysql ports: - "3306:3306" healthcheck: test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] interval: 10s retries: 5 phpmyadmin: image: phpmyadmin/phpmyadmin container_name: phpmyadmin restart: always environment: PMA_HOST: mysql ports: - "8080:80" depends_on: mysql: condition: service_healthy volumes: mysql_data:
- Run the following command to start the container:
docker compose up -d
- Open the browser and go to http://localhost:8080 to access phpMyAdmin with the following credentials:
Username: admin Password: admin