1
0
Fork 0
mirror of https://github.com/anyproto/any-sync-dockercompose.git synced 2025-06-08 05:47:03 +09:00

README.md update mongodb commands

This commit is contained in:
Grigory Efimov 2024-01-09 13:58:05 -03:00
parent 0c443b2d91
commit 499e401376

View file

@ -61,8 +61,8 @@ Self-host for any-sync, designed for review and testing purposes.
* get current network config * get current network config
``` ```
docker compose exec mongo-1 mongosh coordinator docker compose exec mongo-1 mongosh 127.0.0.1:27001/coordinator
db.nodeConf.find().sort( { _id: -1 } ).limit(1) db.getMongo().setReadPref('primaryPreferred'); db.nodeConf.find().sort( { _id: -1 } ).limit(1)
``` ```
## Set specific versions ## Set specific versions