A lesson about what docker is and how to work with it. We will create a simple single page web application and set up a php + nginx + mysql + phpmyadmin stack for it using docker. Let's set up a custom network for interaction between them and learn how to work with Docker Compose for multi-container applications.
Discussion and questions in the group: t.me/danilovcodechat
News channel: t.me/danilovcode
⏰ Timestamps:
00:00 What is this lesson about?
00:28 Benefits of docker
02:41 Installation
04:25 Use
04:55 What are we going to do?
05:16 Definitions: image, container and volume
06:40 Application structure
08:17 nginx container
15:11 php container
24:15 Docker network - container network
29:19 Start, stop, remove container
32:05 Container logs
33:38 Scheme of container interaction
34:47 mysql container
38:35 phpmyadmin container
40:32 Docker Compose
48:24 Docker vs Docker Compose
Useful links:
Docker official site: www.docker.com/
11 июн 2024