up)docker compose -f mongodb.yaml up -d-f specifies the file nameup means create and start all containers defined in the file-d runs everything in detached mode (in background)test-app-default)the version attribute is obsoleteversion field from the YAML filedown)docker compose -f mongodb.yaml down| Command | Result |
|---|---|
up -d | Creates and runs containers |
down | Stops and deletes containers + network |
docker compose up -d → Starts the full application stackdocker compose down → Completely removes the stack