Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
A simple Docker Compose file defining Nginx and Redis services.
# docker-compose/demo/docker-compose.yaml
version: '3.8'
services:
web:
image: nginx:1.21
ports:
- "8080:80"
redis:
image: redis:6
ports:
- "6379:6379"Docker Compose is a tool for defining and running multi-container Docker applications. Using a simple YAML file, it allows developers to configure application services, networks, and volumes, and then start all components with a single command.
Origin & Creator
Created by Docker, Inc. as part of the Docker ecosystem to simplify multi-container application management.
Industrial Note
Docker Compose is widely used in microservice development, local testing environments, CI/CD pipelines, and lightweight container orchestration scenarios.