Hivemq with docker compose fail to start

Hi everyone
I try to start hivmq ce with docker compose with this yaml

version: '3.5'
services:
    hivemq:
        container_name: hivemq
        image: hivemq/hivemq-ce:2021.1
        restart: always
        networks:
            - network_name
        ports:
            - "8000:8000"
            - "1883:1883"
        volumes:
            - hivemq-data-volume:/opt/hivemq/data
            - hivemq-log-volume:/opt/hivemq/log
            - hivemq-conf-volume:/opt/hivemq/conf

volumes:
    hivemq-data-volume:
    hivemq-log-volume:
    hivemq-conf-volume:

networks:
    network_name:

but when I start this with

docker-compose -f hivemq.yml up -d

I always obtain this result in stdout

2021-06-29 15:19:33,661 DEBUG - Setting payload format validation to false
2021-06-29 15:19:33,661 DEBUG - Setting allow-problem-information to true
2021-06-29 15:19:33,661 DEBUG - Setting anonymous usage statistics enabled to false
2021-06-29 15:19:33,662 INFO  - This HiveMQ ID is XsX0G
2021-06-29 15:19:33,691 ERROR - Uncaught Error:
java.nio.BufferUnderflowException: null
        at java.base/java.nio.HeapByteBuffer.get(Unknown Source)
        at com.hivemq.migration.meta.MetaInformationSerializer.getStringFromBuffer(MetaInformationSerializer.java:134)
        at com.hivemq.migration.meta.MetaInformationSerializer.deserialize(MetaInformationSerializer.java:92)
        at com.hivemq.migration.meta.MetaFileService.readMetaFile(MetaFileService.java:66)
        at com.hivemq.migration.Migrations.checkForTypeMigration(Migrations.java:57)
        at com.hivemq.HiveMQServer.main(HiveMQServer.java:134)

Any idea ?

I had the same issue.
This was because I previously run the HiveMQ4 (enterprise edition).
I just had to delete volumes and it runs like a charm.