Revisions
-
rubanraj54 created this gist
Jan 13, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,38 @@ version: '3' services: node1: image: mongo ports: - 30001:27071 volumes: - $HOME/mongoclusterdata/node1:/data/db networks: - mongocluster command: mongod --replSet comments node2: image: mongo ports: - 30002:27071 volumes: - $HOME/mongoclusterdata/node2:/data/db networks: - mongocluster command: mongod --replSet comments depends_on : - node1 node3: image: mongo ports: - 30003:27071 volumes: - $HOME/mongoclusterdata/node3:/data/db networks: - mongocluster command: mongod --replSet comments depends_on : - node2 networks: mongocluster: driver: bridge