Docker Compose is a tool for defining and running multi-container Docker applications. It uses a YAML file to configure the application’s services, networks and volumes.
Example:
version: ‘3.7’
services:
web:
build: .
ports:
– “5000:5000”
volumes:
– ./app:/app
redis:
image: “redis:alpine”
volumes:
data:
networks:
default:
driver: bridge