When you are running a docker-compose up -d command, by default the build image is going to take the name of the current folder.
So for example for this docker-compose.yml file my image will be named: dockersymfony_php because my current folder is named docker-symfony and I indicated php for my image in my yaml file
php:
build: ./docker/php
container_name: symfony
Is there a way to override that ? Like container_name to renaming the container...
I know that the command docker build -t . can do it but I need to use my docker-compose.yml file.