1
00:00:04,490 --> 00:00:10,580
We already agreed to local files for front end and FBI applications, and now it's time to create Docker

2
00:00:10,580 --> 00:00:15,950
compose file with instructions to start both front end and API containers.

3
00:00:16,490 --> 00:00:17,660
Let's get started with that.

4
00:00:18,440 --> 00:00:24,980
Now there are two containers front end and API Iran, and I could verify that using Docker Peoples Command.

5
00:00:25,430 --> 00:00:31,370
And now I'll stop both containers, and afterwards we will create Docker, compose, file and run them

6
00:00:31,370 --> 00:00:33,200
using Docker Compose feature.

7
00:00:33,650 --> 00:00:36,650
So let's stop with container Docker stop.

8
00:00:36,980 --> 00:00:38,900
And here will be the name of the container.

9
00:00:38,930 --> 00:00:41,600
This one like that stopping.

10
00:00:43,140 --> 00:00:49,890
And let's also stop second container with such name in your case, names will be completely different

11
00:00:49,890 --> 00:00:50,370
from mine.

12
00:00:51,120 --> 00:00:54,100
Second container was stopped and now there are no containers running.

13
00:00:54,540 --> 00:01:00,420
And now let's go to our project and here in the root of the Images Gallery folder and show that you'll

14
00:01:00,420 --> 00:01:06,210
do that in the root of the Images Gallery folder, please create new file golden girl.

15
00:01:06,600 --> 00:01:14,910
This compose note why and well, why AML stands for Yamal and of the extension for Docker compose file.

16
00:01:15,230 --> 00:01:21,000
Notice that the voice gold recognized the type of this file does Boker file and again ensure that the

17
00:01:21,000 --> 00:01:25,730
name of this file is exactly like that Docker disk compose dot.

18
00:01:25,960 --> 00:01:27,000
Why AML?

19
00:01:27,690 --> 00:01:33,690
This file is located in the root of our project, because here we will specify all the sewing instructions

20
00:01:33,840 --> 00:01:37,410
to start both API and front and services.

21
00:01:38,210 --> 00:01:39,840
Let's add instructions here.

22
00:01:40,260 --> 00:01:43,890
There are different versions of Docker compose and using version keyword.

23
00:01:44,010 --> 00:01:49,470
We need to set specific version that we want to use, and we will use third version of the Docker compose

24
00:01:49,980 --> 00:01:50,820
on the next line.

25
00:01:50,850 --> 00:01:56,670
Let's add services that we want to run using Docker compose, and at the moment we want to run two services

26
00:01:56,700 --> 00:01:58,110
API and front end.

27
00:01:58,770 --> 00:02:05,670
Please add, So is this keyword notice that we could suggest you specific years for Docker compose file?

28
00:02:05,720 --> 00:02:12,180
That's because we installed Docker extension, so services here at Scholem and after gold.

29
00:02:12,180 --> 00:02:14,790
Please move to the next line and breast step here.

30
00:02:14,790 --> 00:02:16,980
Ensure that Deb expressed here.

31
00:02:17,010 --> 00:02:20,790
We will add first service and it is front, end, front.

32
00:02:20,790 --> 00:02:25,980
And of course, here you don't see any suggestions to autocomplete name because the actual name for

33
00:02:25,980 --> 00:02:28,870
the service you choose it here will be colon.

34
00:02:29,150 --> 00:02:31,800
Let's go to the next line and press step once again.

35
00:02:32,250 --> 00:02:34,980
And here we need to add instructions for Docker compose.

36
00:02:35,130 --> 00:02:42,360
How to start our front end application and first instruction is built using this instruction.

37
00:02:42,480 --> 00:02:50,280
We need to tell Docker where to find necessary Docker file for corresponding custom image because Docker

38
00:02:50,280 --> 00:02:57,390
Compose needs to know how to build custom images for front end and the API service will use for the

39
00:02:57,390 --> 00:02:57,690
build.

40
00:02:57,690 --> 00:03:02,610
Key needs to be path to the folder where Docker file is located.

41
00:03:03,060 --> 00:03:05,490
And here we describe front end service.

42
00:03:05,760 --> 00:03:10,500
This way path here will be a dot less front end like that.

43
00:03:10,950 --> 00:03:18,720
It is our front and folder here because inside of this folder, there was corresponding Docker file

44
00:03:18,750 --> 00:03:19,860
that we created before.

45
00:03:20,880 --> 00:03:21,330
All right.

46
00:03:21,660 --> 00:03:28,790
Built construction was added next, let's add both my opinion using force construction type ports column.

47
00:03:28,830 --> 00:03:29,970
Go to the next line.

48
00:03:30,180 --> 00:03:38,040
Here are pressed tap miners and Hero Type three thousand goal three thousand instructions here will

49
00:03:38,040 --> 00:03:44,270
be similar to those that we used in this public option when we run our front end service.

50
00:03:44,280 --> 00:03:50,790
Separately, Internal Container Port three thousand will be mapped to port three thousand on your local

51
00:03:50,790 --> 00:03:53,580
machine, so that both instruction.

52
00:03:54,360 --> 00:03:56,580
That's it for front end service for now.

53
00:03:56,820 --> 00:04:03,150
And now let's add one more service and show that you move to the same level where front and key is located.

54
00:04:03,450 --> 00:04:05,070
And here are type API.

55
00:04:05,760 --> 00:04:10,560
API service needs to be built using Docker file located in the API folder.

56
00:04:10,680 --> 00:04:15,660
This way, build keyboard will have, well, your daughter less API.

57
00:04:16,050 --> 00:04:20,700
That is EPA folder here, and there was corresponding Docker file inside.

58
00:04:22,130 --> 00:04:29,480
Also, let's add here both my opinion, Paul's column on the next line, Deb Minus, and here let's

59
00:04:29,480 --> 00:04:31,200
explore Sport 50-50.

60
00:04:31,220 --> 00:04:33,920
Will the same brought on your local computer like that?

61
00:04:34,740 --> 00:04:40,770
This actually, for the first version of the Docker compose file, let's say changes in this file and

62
00:04:40,770 --> 00:04:48,120
because of the small balls, let's try to run both containers front end and API using Docker Compose

63
00:04:48,120 --> 00:04:48,540
Command.

64
00:04:48,870 --> 00:04:49,890
I'll see you guys next.

