Docker Compose - Create MySQL and Nginx Containers

preview_player
Показать описание
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 visit these play lists as well

Рекомендации по теме
Комментарии
Автор

how do containers communicate with each other?

pharmokan
Автор

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.

MrNaga
Автор

If we are running multiple docker images like prometheus, cadvisor, ... How to setup something like below?

ideainfinity
visit shbcf.ru