This is the definition of docker compose:
It is used for make deployment easy. by using docker compose you can deploy multi-container apps or services by writing a simple compose file and then by using simple “docker-compose up” command.
Docker Compose sample:
version: "3.9"
services:
db:
image: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db