Define multi-container apps (v1)
high risk
docker-compose configValidate and view the resolved configdocker-compose downWithout -v to keep dataCompose v1 binary; use `docker compose` (v2) today. Reads docker-compose.yml.
| Flag | Meaning |
|---|---|
up -d | Create/start in the background |
down | Stop and remove containers/networks |
down -v | Also remove volumes⚠ Deletes database data. |
logs -f | Follow logs |
pull | Update images |
docker-compose psStatus · explain & risk-check →docker-compose up -dStart the stack · explain & risk-check →Reference text is hand-written and may be incomplete — check man docker-compose for your version. Test destructive commands on a non-production system first.