Useful commands for docker environment.
Run docker compose up -d with host bash in the project root directory.
Use --force-recreate to force the recreation of containers.
Run docker compose down with host bash in the project root directory.
Run docker container restart <container> with host bash in the project root directory or use action button in the PhpStorm container view.
Run docker exec -it <container> bash with host bash in the project root directory or open Docker Desktop and open a terminal in the PhpStorm container view.
Run docker stats
Tip
If you use PhpStorm, you can use service view to perform main actions. You can also find plugin for Visual Studio Code.