Because of using multiple micro-services, with each micro-service having their own database dependencies (some overlap). I have a custom bash file that allows the developer to choose which microservices they want to run locally (for testing), it essentially builds a command:
EDIT: thanks to answer pointing out, you do need -f before every compose .yml file, I do use this, I just didn't originally type it out here.
docker-compose -f \
-f <docker-compose.ms1.yml> -f <docker-compose.ms2.yml> \
-f <docker-compose.dba> -f <docker-compose.dbb> \
up ms1-container ms2-container \
dba-container dbb container
Now this works fine, but traditionally (using a single .yml file and just running docker-compose up), if I wanted to see output logs, I would do docker-compose logs -f, or if I wanted to restart a particular service in the compose file, I would:
docker-compose stop <service_name>
docker-compose rm <service_name>
docker-compose create <service_name>
docker-compose start <service_name>
But now with it all started dynamically, how can I restart a particular docker-compose service, and also how can I tap back into the logs with logs -f?