Prerequisites
-
docker-compose installed
Setup
This is our docker-compose.yml
:
version: '3.2'
services:
db:
image: mysql:8.0
container_name: mysql-container
restart: always
ports:
- '6603:3306'
environment:
MYSQL_ROOT_PASSWORD: 12345678
app:
depends_on:
- db
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
restart: always
ports:
- '8080:80'
environment:
PMA_HOST: db
Running
docker-compose up
Starting mysql-container ... done
Starting phpmyadmin ... done
Attaching to mysql-container, phpmyadmin
[..]
We may now login using the following ultra-secure credentials ;)
User: root , Password: 12345678
|