How to keep previous containers on docker-compose up?
docker-compose up will remove containers when:


The service name is the same, but has a change, in which case the old container is replaced with the new state of the service
You include the --remove-orphans option when running docker-compose


Otherwise, if you change the name of the service, and do not specify --remove-orphans, you will see "orphaned" containers still running.