If using colima on mac for docker, try disabling the emulation for x86/64
run
colima start --arch aarch64 --no-qemu
Then run
docker info
to ensure it's not using x86/64 as the architecture.
Inspect the mongo image:
docker inspect mongo --format '{{.Architecture}}'
Then, Update your docker compose
services:
mongodb:
container_name: mongodb
image: mongo:latest
platform: linux/arm64/v8
After that try rebuilding the stack.