Mongodb/mongodb-atlas-local not working in github actions

@John_Smith12 just re-reading the tutorial, and assuming you’re using the docker-compose.yml example, it looks like the example (in the code repo too) is missing the line hostname: mongodb. Without this, when the container is stopped and then restarted, the container will struggle to find the volume again. If this is what happened, you should be able to get back into a working state by

  1. Add the hostname the yml
...
mongodb:
    **hostname: mongodb**
    image: mongodb/mongodb-atlas-local
...
  1. Delete the container in docker desktop
    Or via the terminal
//get the name of the container
docker ps -a

//delete the container
docker rm <name of container or ID>
  1. Docker Compose up

Importantly, when it comes to stopping the container, use docker compose down -v to ensure the data volume persists (assuming you want it to persist, and don’t want to start from scratch each time).