1
00:00:04,340 --> 00:00:09,830
Now there are two containers up and running, and we see here that Docker compose boards is also running.

2
00:00:10,370 --> 00:00:13,940
And let's first interrupt this protest by press and key combination control.

3
00:00:13,950 --> 00:00:20,900
See like that you'll see that two containers are no stopping this one and this one containers where

4
00:00:20,900 --> 00:00:21,410
I stopped.

5
00:00:21,830 --> 00:00:28,490
And if I enter Docker pipes now, I'll see empty output because Docker compose has stopped both containers.

6
00:00:29,180 --> 00:00:34,310
No less try to run both containers using same comment as before Docker compose up.

7
00:00:34,670 --> 00:00:36,560
But now let's run them in background.

8
00:00:37,010 --> 00:00:42,770
And first, let's have a look at all options that you have in Docker compose up command for that plus

9
00:00:42,770 --> 00:00:45,220
type Docker compose up this desk help.

10
00:00:45,830 --> 00:00:47,570
Here you'll find a list of options.

11
00:00:47,930 --> 00:00:53,780
In this options list you could find auctioned this desk build that allows you to rebuild all image as

12
00:00:53,780 --> 00:00:55,580
defined in the Docker compose file.

13
00:00:56,150 --> 00:01:02,080
And also at the beginning of this options list, you should find option that is called this deal or

14
00:01:02,120 --> 00:01:03,350
does this detach?

15
00:01:04,040 --> 00:01:09,440
And this will run all containers defined in the Docker compose file in detached mode.

16
00:01:09,950 --> 00:01:12,020
And this water will dry right now.

17
00:01:12,500 --> 00:01:19,040
Well, it's clear terminal and type Docker desk compose up desk deep distance for detached mode.

18
00:01:19,430 --> 00:01:20,150
Let's go ahead.

19
00:01:21,080 --> 00:01:22,700
Start in both containers.

20
00:01:23,150 --> 00:01:26,570
You can just gallery API one and images gallery front and one.

21
00:01:27,850 --> 00:01:29,920
Done and done here.

22
00:01:30,700 --> 00:01:35,020
No, I returned to the command prompt and I could continue doing all those operations.

23
00:01:35,350 --> 00:01:42,440
Let's have a look at county run containers door Gropius and I see both containers that are up and running.

24
00:01:42,460 --> 00:01:48,070
Same as before API and front and containers wait lists.

25
00:01:48,070 --> 00:01:50,860
No verify whether our application works as before.

26
00:01:51,250 --> 00:01:52,450
Refresh page here.

27
00:01:53,490 --> 00:01:54,390
Search for something.

28
00:01:55,530 --> 00:01:56,670
And they got results.

29
00:01:56,760 --> 00:01:57,720
Same as before.

30
00:01:58,150 --> 00:02:05,160
Wait, no, let me show you how you're able to stop those containers by using Docker compose down command.

31
00:02:05,670 --> 00:02:09,430
Let's clear terminal and type Docker desk compose down.

32
00:02:10,139 --> 00:02:15,540
And it's important to mention that you need to run those commands like Docker compose down or Docker

33
00:02:15,540 --> 00:02:21,840
compose up in a specific folder where there was correspondent Docker compose YAML file.

34
00:02:22,170 --> 00:02:24,270
OK, let's bring down both containers.

35
00:02:24,780 --> 00:02:27,180
Both containers are being stopped at the moment.

36
00:02:28,050 --> 00:02:28,500
Stopped.

37
00:02:28,800 --> 00:02:35,220
Also, those containers were removed and also network that was created specifically for communication

38
00:02:35,220 --> 00:02:37,680
between those containers was removed as well.

39
00:02:37,890 --> 00:02:40,140
Network name is image gallery default.

40
00:02:40,710 --> 00:02:42,810
Let's start those containers back again.

41
00:02:43,140 --> 00:02:46,770
Docker compose up this detection mode.

42
00:02:48,080 --> 00:02:48,680
And network.

43
00:02:50,540 --> 00:02:51,590
Greed in containers.

44
00:02:52,510 --> 00:02:56,720
Notice that we don't build new images because images are already built.

45
00:02:58,030 --> 00:03:01,030
Done here and done here and containers.

46
00:03:01,240 --> 00:03:01,850
Oh no.

47
00:03:01,870 --> 00:03:03,160
Again, up and running.

48
00:03:04,110 --> 00:03:04,510
Great.

49
00:03:04,740 --> 00:03:07,650
No, let's go meet the changes made in Docker compose file.

50
00:03:07,740 --> 00:03:09,600
It is actually its initial version.

51
00:03:09,900 --> 00:03:18,000
Let's go to source control and here will be initial version of the Docker compose like that.

52
00:03:18,450 --> 00:03:18,930
Well, that's coming.

53
00:03:18,930 --> 00:03:19,380
It changes.

54
00:03:20,040 --> 00:03:20,790
Changes committed.

55
00:03:21,090 --> 00:03:22,070
And now let's proceed.

56
00:03:22,080 --> 00:03:29,040
And next, I'll explain to you how to map volumes to the containers and you'll understand why we actually

57
00:03:29,040 --> 00:03:29,850
need to do that.

58
00:03:30,300 --> 00:03:31,770
I'll see you guys just in a bit.

