1
00:00:02,150 --> 00:00:04,290
Speaking of multi container projects,

2
00:00:04,290 --> 00:00:06,930
we also learned about Docker Compose.

3
00:00:06,930 --> 00:00:09,860
The idea behind Docker Compose is simple.

4
00:00:09,860 --> 00:00:10,740
With Docker,

5
00:00:10,740 --> 00:00:12,030
we can run containers

6
00:00:12,030 --> 00:00:13,420
and build images,

7
00:00:13,420 --> 00:00:15,060
but the commands for doing that

8
00:00:15,060 --> 00:00:16,550
might get rather along.

9
00:00:16,550 --> 00:00:19,399
Especially if we have multiple environment variables,

10
00:00:19,399 --> 00:00:20,232
volumes,

11
00:00:20,232 --> 00:00:21,430
or networks.

12
00:00:21,430 --> 00:00:24,260
Then we have very long Docker run commands,

13
00:00:24,260 --> 00:00:26,840
and especially in multi container environments,

14
00:00:26,840 --> 00:00:29,920
that then quickly becomes a lot of work.

15
00:00:29,920 --> 00:00:32,159
Therefore, we have Docker Compose.

16
00:00:32,159 --> 00:00:35,090
Docker Compose allows us to put our container

17
00:00:35,090 --> 00:00:36,640
launch configuration,

18
00:00:36,640 --> 00:00:38,760
into a configuration file,

19
00:00:38,760 --> 00:00:40,690
which is sent automatically picked up

20
00:00:40,690 --> 00:00:42,890
when we run Docker compose up,

21
00:00:42,890 --> 00:00:44,010
which then starts

22
00:00:44,010 --> 00:00:44,920
and initializes,

23
00:00:44,920 --> 00:00:45,960
all the containers

24
00:00:45,960 --> 00:00:49,070
as defined in that configuration file.

25
00:00:49,070 --> 00:00:49,970
And it's all the den,

26
00:00:49,970 --> 00:00:51,450
just whenever a command,

27
00:00:51,450 --> 00:00:52,990
docker composed down,

28
00:00:52,990 --> 00:00:55,150
to bring all these started containers,

29
00:00:55,150 --> 00:00:56,070
down again,

30
00:00:56,070 --> 00:00:57,872
if we wanna stop them.

31
00:00:57,872 --> 00:01:00,680
Therefore, Docker compose is an amazing tool,

32
00:01:00,680 --> 00:01:02,510
for more complex containers

33
00:01:02,510 --> 00:01:04,250
and more complex projects,

34
00:01:04,250 --> 00:01:05,489
especially,

35
00:01:05,489 --> 00:01:07,060
but not limited to,

36
00:01:07,060 --> 00:01:09,103
multi container projects, Of course.

