Docker-install-mongo

1
2
3
4
5
6
7
8
9
10
11
mongo:
image: mongo
restart: always
ports:
- 14017:27017
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- /dockerdata/v-yinfu/mongo/configdb:/data/configdb
- /dockerdata/v-yinfu/mongo/db:/data/db