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

Merge pull request #12 from anyproto/11-unable-to-generate-config

README.md update mongodb commands
This commit is contained in:
Grigory Efimov 2024-01-09 14:04:17 -03:00 committed by GitHub
commit 84b6ecc29e
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

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