Skip to content
KALANBLON
Show contents

Chapter 7 of 7 · 10 min

Quiz: complete applications

Volumes, networks, environment variables, Docker Compose and secrets: let's check that you can run a complete application. You need 70% correct answers, and every answer is explained.

Quiz

6 questions · pass mark: 70%

  1. 1.What happens to the files a container wrote in a folder without a volume, when the container is removed?

    One answer

  2. 2.Inside a web container, what does the address localhost mean?

    One answer

  3. 3.Why not publish the database's port 5432 with ports in compose.yaml?

    One answer

  4. 4.What does depends_on with condition: service_healthy do?

    One answer

  5. 5.Which command stops the application while keeping the data?

    One answer

  6. 6.Fill in the name of the file, placed next to compose.yaml, where Compose reads values such as ${DB_PASSWORD}.

    Complete the code

    DB_PASSWORD=...   # in the ____ file (never committed)

Your progress is saved on this device. Create a free account to keep your progress on all your devices.