![]() ![]() We will complete the lesson by discussing several special topics: variable substitution and extension fields.Īt the end, we will review all of the information that has been explained in this lesson. We will review how to use a bridge network for Compose files through examples. You will learn about network configurations in Compose files, and how they align with the Docker network create command. We will view an example of a Compose file using the root volume’s key. We will explain the next root key in the Compose file mapping: volumes. To wrap up this portion, we will see several examples of service configurations. We will see how you would configure a container using Docker commands and the configuration key in the Compose file. We will get a little more in-depth with the configuration of the container for the service. Services: where you configure the containers created for services in your application The version string tells Compose how the contents of the file should be parsed. Version: the value for the version must be a string. We will delve into the type of mapping available in a YAML Compose file: We will discuss the Docker Engine requirements and the Compose file configurations. We will shift our focus back to version 3 Compose files. Combos: combination of sequence and mapping collections. Sequences: lists or arrays in other languages. Mappings: known as dictionaries or hashes in different programming languages. Then we will cover YAML collections and how they are organized: Booleans: indicate one of two values: true or false. Null Type: represents the absence of a value, or no value. Strings: a sequence of characters that can include spaces and the use of quotes to indicate the start and end of a string. Integers: whole numbers like zero or 1, which also includes negatives. Next we will look at a few basic data types in YAML: Then, we will move into a discussion on JSON, and evaluate the difference between both languages. We will start with outlining the high-level capabilities of YAML. Then we will teach you about the root elements in a Compose file document: Compose file version, services in the application, volumes used by the services, and networks to be created. In this lesson, you will learn about the file format used for Compose files: YAML. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |