-d = detached mode, containers run in background
-v deletes volumes after quitting a container (don't do that!)
In our case [name_of_service] is app
Opens a bash in your container
- Display all Containers with
docker compose ps -a - Quit the container with
exit docker compose downStops and removes a containerdocker compose stopStops a container without deleting anythingdocker compose startStarts existing containers for a servicedocker compose restartRestarts all stopped and running services, or the specified services only
In our case vendor/bin/phpunit ./tests/Unit/Service/CalcServiceTest.php