Docker MongoDB
- Clone
.env.sample
to.env
in the same directory and update configuration for project. - Start docker container:
docker-compose up
ordocker-compose up -d
- Refer to docker compose document in here.
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null