Data Engineering, Data Science, Mongodb, Python, DevOps.
following docker-compose file to deploy the MongoDB cluster. version: '3.8' networks: default: name: mongoCluster services: mongodb_master: image: mongo:latest container_name: mongodb_master restart: always ports: - 27017:27017 volumes: - ./master_data:/data/db networks: - default command: mongod