What are the main features of Docker-compose?

Some ofthe main features of docker-compose-areas follows:

  1. Multiple environments on the same Host: We can use it to create multiple environments on the same host server.
  2. Preserve Volume Data on Container Creation: Docker Compose also preserves the volume data when we create a container.
  3. Recreate the changed Containers: We can also use compose to recreate the changed containers.
  4. Variables in Compose file: Docker composes also supports variables in compose file. In this way, we can create variations of our containers.