Docker Compose Flashcards

1
Q

What is Docker Compose?

A

Docker Compose is a tool for orchestrating containers locally. It should not be used for production.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a compose.yaml file?

A

A compose.yaml file is a set of instructions for building and executing container services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

By default Compose sets up a single network for your app. Each container for a service joins the default network and is both reachable by other containers on that network, and discoverable by the service’s name.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Docker compose supports variables in the compose file, allowing you to customize your composition for different environments

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which has the highest precedence when defining environment variables: compose.yaml or Dockerfile?

A

compose.yaml has the highest precedence. This means, configuration specified in compose.yaml will override configuration in Dockerfile. For more details, review: https://docs.docker.com/compose/environment-variables/envvars-precedence/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The compose.yaml file adds the service names as hostname aliases

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly