culTest

    One of the 50 questions in this topic

    How much do you know about Docker?

    What file does Docker Compose use to define services?

    Answers

    docker-config.json
    compose.xml
    docker-compose.ymlCorrect
    services.docker

    Docker Compose uses a file called docker-compose.yml (or docker-compose.yaml) to define the configuration of an application's services, networks, and volumes. This YAML file allows you to declare the entire infrastructure as code, facilitating the reproducibility of the environment.