MongoDB-Atlas-Local - error related to volumes configured

I have this YAML:

services:
  mongo:
    image: mongodb/mongodb-atlas-local
    volumes:
      - mongodb_data:/data/db
    env_file:
      - ./docker/mongodb-atlas-local/.env
    ports:
      - 27017:27017
    networks:
      - gateway
    deploy:
      resources:
        limits:
          cpus: '1.0'
          memory: 512M
        reservations:
          cpus: '0.5'
          memory: 128M
      restart_policy:
        condition: on-failure
        delay: 5s
        max_attempts: 3
        window: 120s

volumes:
  mongodb_data:

networks:
  gateway: {}

Steps to reproduce the issue:

  1. Run “docker-compose up mongo”
  2. Run Ctrl + C and then to ensure “docker-compose down”
  3. Run “docker-compose up mongo”

And now we have the issue. Follow the terminal output:

WARNING: The following deploy sub-keys are not supported and have been ignored: resources.reservations.cpus
WARNING: The following deploy sub-keys are not supported and have been ignored: restart_policy.delay, restart_policy.window, resources.reservations.cpus
WARNING: The following deploy sub-keys are not supported and have been ignored: resources.reservations.cpus
WARNING: The following deploy sub-keys are not supported and have been ignored: resources.reservations.cpus
WARNING: The following deploy sub-keys are not supported and have been ignored: resources.reservations.cpus
WARNING: The following deploy sub-keys are not supported and have been ignored: resources.reservations.cpus
Creating network "herodocker_gateway" with the default driver
Creating herodocker_mongo_1 ... done
Attaching to herodocker_mongo_1
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.154Z"},"s":"I",  "c":"CONTROL",  "id":5760901, "ctx":"main","msg":"Applied --setParameter options","attr":{"serverParameters":{"mongotHost":{"default":"","value":"localhost:27027"},"searchIndexManagementHostAndPort":{"default":"","value":"localhost:27027"}}}}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.156+00:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"I",  "c":"CONTROL",  "id":5945603, "ctx":"main","msg":"Multi threading initialized"}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set at least one of the related parameters","attr":{"relatedParameters":["tcpFastOpenServer","tcpFastOpenClient","tcpFastOpenQueueSize"]}}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"I",  "c":"ACCESS",   "id":20254,   "ctx":"main","msg":"Read security file failed","attr":{"error":{"code":30,"codeName":"InvalidPath","errmsg":"Error reading file /data/configdb/keyfile: No such file or directory"}}}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"I",  "c":"ASIO",     "id":6529201, "ctx":"main","msg":"Network interface redundant shutdown","attr":{"state":"Stopped"}}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"main","msg":"Killing all outstanding egress activity."}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"I",  "c":"ASIO",     "id":6529201, "ctx":"main","msg":"Network interface redundant shutdown","attr":{"state":"Stopped"}}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"main","msg":"Killing all outstanding egress activity."}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"I",  "c":"ASIO",     "id":6529201, "ctx":"main","msg":"Network interface redundant shutdown","attr":{"state":"Stopped"}}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"main","msg":"Killing all outstanding egress activity."}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"I",  "c":"SHARDING", "id":5847201, "ctx":"main","msg":"Balancer command scheduler stop requested"}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"I",  "c":"ASIO",     "id":6529201, "ctx":"main","msg":"Network interface redundant shutdown","attr":{"state":"Stopped"}}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"I",  "c":"ASIO",     "id":22582,   "ctx":"main","msg":"Killing all outstanding egress activity."}
mongo_1                     | {"t":{"$date":"2024-10-16T19:21:03.157+00:00"},"s":"F",  "c":"CONTROL",  "id":20575,   "ctx":"main","msg":"Error creating service context","attr":{"error":"Location5579201: Unable to acquire security key[s]"}}

Spoiler: I can fix the issue removing the volume and then run again but this will lost all the data and force me to seed again each time I run up again.

Someone has any suggestion to fix this withou losing all my data?