Member-only story
(Video Series)⚡️Docker Practical Guide⚡️Part-4: Install WordPress and MySQL with Docker-Compose 🤓
2 min readDec 30, 2020

It’s a Series on DOCKER- ⚡️DOCKER Practical Guide⚡️
All the Docker concept in this series can be applied in any technologies like — Java, .Net, Python, Go, you name it.
In today’s video, we will see how we can use Docker-Compose to install WordPress and MySQL and create a Basic Hello-World Website easily in a few minutes. 💪
Enjoy 🌸
This is the basic docker-compose.yml file config. 👇
services:
my_wp_site:
image: wordpress:latest
ports:
- "8000:80"
restart: always
depends_on:
- mysql_db
environment:
WORDPRESS_DB_HOST: mysql_db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wpdb
mysql_db:
image: mysql:5.7
restart: always
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wpdb
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress…