Dabbling in Docker-Compose
Thinking of adding separate containers to your MongoDB? Here's a quick how-to of how to get them up and running.
Join the DZone community and get the full member experience.Join For Free
mongodata: image: mongo:3.2 volumes: - /data/db entrypoint: /bin/bash mongo: image: mongo:3.2 volumes_from: - mongodata ports: - "27017:27017"
Published at DZone with permission of Kevin Hooke, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.