Introducing the Docker Compose file syntax
We will use docker-compose
with a YAML file, in which we will define all the services, volumes, and networks that will run together and be managed as components of an application. The YAML file used should follow the Compose application model (more information is available at https://github.com/compose-spec/compose-spec/blob/master/spec.md). This model will distribute application components in services and their intercommunication with each other using networks. These networks provide the isolation and abstraction layers for our application containers. Services will store and share their data by using volumes.
Services may need additional configurations, and we will use config and secret resources to add specific information to manage the application’s behavior. These objects will be mounted inside our containers, and processes running inside them will use the provided configurations. Secrets will be used to inject sensitive data...