Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.7"
- services:
- mongo:
- container_name: MongoDB
- image: mongo:latest
- ports:
- - 27017:27017
- command: mongod
- volumes:
- - db_mongo:/data/db
- volumes:
- db_mongo:
- external: true
- # note: you have to create volume db_mongo -> docker volume create db_mongo
Add Comment
Please, Sign In to add comment