Test your Docker Compose knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.
Question 1/5Score 0
What is the standard configuration file name Docker Compose looks for?
Questions in this quiz
What is the standard configuration file name Docker Compose looks for?
What does `docker-compose logs` (optionally with `-f` for "follow") let a developer do?
What is the purpose of `depends_on` in a Docker Compose service definition?
What is the purpose of a `healthcheck` configuration on a Docker Compose service?
What is a "service" in a `docker-compose.yml` file?
What does the `ports` configuration key do in a Docker Compose service definition, e.g. `ports: - "8080:80"`?
What does the `restart` policy configuration (e.g. `restart: unless-stopped` or `restart: always`) do for a Docker Compose service?
What is a general limitation of Docker Compose that leads teams to adopt Kubernetes (or a similar orchestrator) once an application needs genuine production-scale operation across multiple machines?
What does Docker Compose's automatic networking between services provide, e.g. a `web` service being able to connect to a `db` service by simply using the hostname `db`?
What is a general benefit of checking a `docker-compose.yml` file into a project's version control alongside the application code?
What is the purpose of an `.env` file used alongside a `docker-compose.yml` file?
What is the purpose of the `volumes` configuration in a Docker Compose service definition?