This repository has been archived on 2020-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
stack/init-mongo-chat.sh

2 lines
121 B
Bash
Raw Normal View History

2020-04-29 08:19:45 +00:00
docker exec -it $1 mongo --eval "printjson(rs.initiate({_id: 'rs0', members: [ { _id: 0, host: 'localhost:27017' } ]}))"