In this video, we are going to look at the Docker Compose YML file. We will see how can we create a YML file, versioning. We will mention MySQL and WordPress code in the docker-compose.yml file and install both the containers using this file.
*****Docker-Compose YML File Code*****
----------------------------------------------------------------------------------------------------------------------
version: '3' #Version of yml file
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: Passw0rd
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8080:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
volumes:
db_data:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Background music credits: [ Ссылка ]
💥Visit My Website to copy all commands💥
[ Ссылка ]
💥Download Android Apps APK💥
[ Ссылка ]
💥💥💥Hire Me On Fiverr💥💥💥
[ Ссылка ]
💥💥💥Must Watch Videos💥💥💥
How to Install OpenSSL / Enable Https on Ubuntu 18.04 - 20.04
[ Ссылка ]
How to Track Memory Leak and create Dump
[ Ссылка ]
Convert website to android app
[ Ссылка ]
How to install Webmin on Ubuntu
[ Ссылка ]
How to install WordPress in Subfolder
[ Ссылка ]
How to install MacOS in VMWare Workstation Step By Step
[ Ссылка ]
How to Install Zabbix Monitoring Tool On CentOS
[ Ссылка ]
How to Install Interspire on Ubuntu 18.04
[ Ссылка ]
How to Install WordPress on CentOS 8
[ Ссылка ]
How to Install phpMyAdmin on CentOS 8
[ Ссылка ]
How to install MacOS on VMWare Workstation Pro
[ Ссылка ]
How to Install osTicket in CentOS
[ Ссылка ]
How to install Mailwizz Application on CentOS
[ Ссылка ]
How to install and configure OpenDKIM
[ Ссылка ]
Follow Me On Social Media
[ Ссылка ]
[ Ссылка ]
[ Ссылка ]
** Disclaimer : Original © TechsBucket Content, Presented here for Information Only ** Any Duplication, Download, Upload of This Video is Strictly Not Allowed. Any Person or Channel Found With the Same Video or Content, Will Face, Immediate Copyright Strike.
Install MySQL And WordPress With Docker Compose YML
Теги
dockerdocker composedocker compose tutorialdocker ymlwhat is docker composedocker containerdocker tutorial for beginnershow to use docker composedocker container tutorialdocker compose yml filedocker wordpressdocker compose wordpresswordpress on dockerdocker wordpress tutorialwordpress in dockerdocker and wordpresswordpress docker composedocker wordpress deploymentdocker compose wordpress mysql exampledocker wordpress mysql