Junior — Middle
Have you used Docker Compose for container orchestration?
sobes.tech AI
Answer from AI
Yes, Docker Compose is used for convenient management of multiple Docker containers that together make up an application. The docker-compose.yml file describes the services, their images, networks, and volumes. This allows you to start and stop the entire stack with the commands docker-compose up and docker-compose down.
Example of a simple docker-compose.yml:
version: '3'
services:
web:
image: nginx
ports:
- "80:80"
db:
image: postgres
environment:
POSTGRES_PASSWORD: example
This file launches a web server and a database, connected within a single network.