Create Wordpress Container

docker run --name my-wordpress-db -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=wordpress  -p 5455:5432 -d postgres

Create MySQL container

docker run --name my-wordpress-extension  -p 8888:80 -d wordpress

Create Database

docker exec -it my-wordpress-db mysql -u root -p
create database wordpress;

Create a virtual network

docker network create --attachable my-wordpress-network

Connect containers to virtual network

docker network connect my-wordpress-network my-wordpress-extension
docker network connect my-wordpress-network my-wordpress-db

Configure Wordpress

Database Name: wordpress
Username: root
Password: password
Database Host: my-wordpress-db
Table Prefix: wp_