Docker Compose - Create MySQL and Nginx Containers



This video will explain how to create mysql and nginx containers using docker compose.Here we are using images from public repository

Docker Compose File

version: ‘3’
services:
databases_test:
image: mysql
ports:
– “3307:3306”
environment:
– MYSQL_ROOT_PASSWORD=password
– MYSQL_USER=user
– MYSQL_PASSWORD=password
– MYSQL_DATABASE=demodb
web_test:
image: nginx

#—————————————————#
ubscribe this channel to get periodic update
Please click this link to subscribe my channel – https://www.youtube.com/c/hadoopengineering/?sub_confirmation=1

Please visit these play lists as well

Docker Fundamentals – https://www.youtube.com/watch?v=ZaCue0XsXUI&list=PLY-V_O-O7h4eL8Efnheizd8RTv_snEoOB
Linux Basics – https://www.youtube.com/watch?v=OSyvTkkLGgs&list=PLY-V_O-O7h4cgwvKtlWtDvCPWO0oqh4IM
Linux Tips and Tricks – https://www.youtube.com/watch?v=e0Bi2IDeySo&list=PLY-V_O-O7h4d9b20j7cEuwzHAJ4Z4SgYZ
Cloudera Hadoop Administration – https://www.youtube.com/watch?v=DjdhZlTGukg&list=PLY-V_O-O7h4dUA5A2E-w_Jd4J4ks27_9v
Cloudera Hadoop 6 – https://www.youtube.com/watch?v=9C4p2ffqtAQ&list=PLY-V_O-O7h4eBLQTjl9eOqlyfKfeVdd_x
Bash Scripting – https://www.youtube.com/watch?v=UqAGoneXGJ8&list=PLY-V_O-O7h4fVhpsvXWjTeGYAHjJAdx1b
Hortonworks Data Platform3 – https://www.youtube.com/watch?v=JXgRu9vw9so&list=PLY-V_O-O7h4eCkKpb6ambmlYf8eEZ2d83
Hadoop Admin Q&A – https://www.youtube.com/watch?v=OGIKKvCdakM&list=PLY-V_O-O7h4c-kiIvx9Ld6raOLU6G5–i
Hadoop Security – https://www.youtube.com/watch?v=tJeLOVaVqjk&list=PLY-V_O-O7h4fHTSxNCipvqfOvFCa-6f07
HD Insight – https://www.youtube.com/watch?v=fi_8DQM5tA4&list=PLY-V_O-O7h4eGzGAJIrjOh1cFyRRav172
HDP Administration – https://www.youtube.com/watch?v=_T4Ktq6yZ3Q&list=PLY-V_O-O7h4dwTtMk77X6JO-AcENbSBr_
HDPCA – https://www.youtube.com/watch?v=s1eA0O2SC8A&list=PLY-V_O-O7h4dabIDNXkBTAbVSvQvmJZmg
Cloudera Certified Administrator – https://www.youtube.com/watch?v=0QrXYZEXeB8&list=PLY-V_O-O7h4e4cib3_Mhdeazzr_Iu1nFh
HDP Upgrade – https://www.youtube.com/watch?v=XFJwrmGNMzU&list=PLY-V_O-O7h4eIwazVbG0chhDugicNmyh-
Puppet – https://www.youtube.com/watch?v=cVbTzjB6W-8&list=PLY-V_O-O7h4e8zwmRjuQalNhUwWHrJYNe
Data Governance – https://www.youtube.com/watch?v=BuCgnhCVUqw&list=PLY-V_O-O7h4fDUKXepXlAwvSGBmAlwr_V

source

4 thoughts on “Docker Compose – Create MySQL and Nginx Containers”
  1. Very Nice presentation, I would like to know how to include mysql container database restoration from backup file (.sql) in the docker-compose.yml file. I think that information would take your presentation to next level.

  2. Great video! I would love your advice. I have a django app which has a
    mysql db which I need to change over to postgres. Can I simply make the
    changes in the docker-compose.yml file or do I need to search for any
    mysql reference thoughout the whole app and change it to psql? Thank you
    for your help, I can't find much info about it online.

Leave a Reply

Your email address will not be published.

Captcha loading...