Launch a new docker with the same docker compose file without stopping the ones already launched

I am using gitlab to create container. Each container is using same compose file but only difference is tag name (which is branch name).

But When I am trying to run the pipeline say “A” and check the container status it is running but when I tried to run pipeline with branch name say “B” than B container is running but “A” container stops automatically.

If I will create a container “C” than status of “C” will be running but “B” will stop

My script in start_container stage is something like this:

DOCKER_COMPOSE_CMD = “docker-compose -f ./docker-compose.common.yml -f ./docker-compose.ci.yml”

${DOCKER_COMPOSE_CMD} up -d routingmachine-snapshot-run routingmachine-data