DEV Community

loading...
Cover image for (Video Series)⚡️Docker Practical Guide⚡️Part-4: Install WordPress and MySQL with Docker-Compose 🤓
The Destro Dev Show

(Video Series)⚡️Docker Practical Guide⚡️Part-4: Install WordPress and MySQL with Docker-Compose 🤓

destro_mas profile image Shahjada Talukdar ・2 min read

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.

Part-3: Install WordPress and MySQL with Docker-Compose

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
volumes:
    db_data: {}
Enter fullscreen mode Exit fullscreen mode

In this Series, I will post the following topics and more 🙌
Alt Text

As I will show some fun Docker stuff we might need in our day-to-day work, That's why the name of the series is - ⚡️DOCKER Practical Guide⚡️

SUBSCRIBE to YouTube Channel - https://www.youtube.com/c/TheDestroDevShow?sub_confirmation=1
LIKE FB Page - https://www.facebook.com/the.destro.dev.show/
Follow on Twitter - https://twitter.com/destro_mas
Follow on DEV - https://dev.to/destro_mas

Made with ❤️ in Berlin!

Cheers!
👋



As I am trying to contribute contents on the Web, you can buy me a coffee for my hours spent on all of these ❤️😊🌸

Buy Me A Coffee

Discussion (0)

pic
Editor guide