All quizzes
Free quiz · 20 questions in the bank

Docker Compose quiz

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
  1. What is the standard configuration file name Docker Compose looks for?
  2. What does `docker-compose logs` (optionally with `-f` for "follow") let a developer do?
  3. What is the purpose of `depends_on` in a Docker Compose service definition?
  4. What is the purpose of a `healthcheck` configuration on a Docker Compose service?
  5. What is a "service" in a `docker-compose.yml` file?
  6. What does the `ports` configuration key do in a Docker Compose service definition, e.g. `ports: - "8080:80"`?
  7. What does the `restart` policy configuration (e.g. `restart: unless-stopped` or `restart: always`) do for a Docker Compose service?
  8. 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?
  9. 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`?
  10. What is a general benefit of checking a `docker-compose.yml` file into a project's version control alongside the application code?
  11. What is the purpose of an `.env` file used alongside a `docker-compose.yml` file?
  12. What is the purpose of the `volumes` configuration in a Docker Compose service definition?
Gaps to close?
Read the curated Docker Compose notes — core concepts, patterns, interview prep.
Docker Compose notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web