For others experiencing the same problem, I found a viable workaround.
You can also add a volume for /data/configdb and it will no longer have this error on subsequent starts.
services:
mongodb:
image: mongodb/mongodb-atlas-local:7.0.12
volumes:
- db-data:/data/db
- db-config:/data/configdb
volumes:
db-data:
db-config: