The cookie file content does not have the expected initial value.
docker-compose.yml
version: '3.8'
services:
rabbitmq:
image: rabbitmq:3.9.5-management
hostname: rabbit01
container_name: rabbitmq
restart: always
environment:
- RABBITMQ_ERLANG_COOKIE=GBMQWMMYXWMEBYDDHYVQ
volumes:
- ./dockerfiles/rabbitmq/data:/var/lib/rabbitmq3
- ./dockerfiles/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
After starting the service, I go inside the container through exec, and then view /root/.erlang.cookie and /var/lib/rabbitmq/.erlang.cookie, The contents of a cookie file is TVCCUOTBYAGPINTFQKXX.

Could you tell me what I did wrong?