Service won't be listed in docker-compose ps when service name changes in docker-compose file lets say from redis to redisabc like below. Additionally docker creates it as a container, it can be seen when docker ps executed.
I restarted docker desktop and also made reboot to machine nothing changed.
My docker-compose file version is 3.6 
redisabc:
container_name: redis
image: redis
command: [ "redis-server", "--protected-mode", "no" ]
hostname: redis
restart: always
ports:
- 6379:6379
networks:
- backend
as you see there is no service called redisabc when typed docker-compose ps

but it stays as container (docker ps result)

and this is the way I create docker-compose file

If I change back the service name redisabc to redis once again everything works as expected
IMPORTANT EDIT: I tested everything with another computer and no problem is shown. I wonder is there any caching mechanism for services on docker that I can flush all? I'm really confused about what's going on.