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

refactoring README.md

This commit is contained in:
Grigory Efimov 2023-08-15 17:13:19 +03:00
parent ea780d0b74
commit f284565e73

View file

@ -1,4 +1,8 @@
# test stand in docker-compose # test stand (self-host) in docker-compose
self-host for any-sync
intended for review and testing
[!IMPORTANT]
** please don't use it for production!**
## prepare ## prepare
* Creating a personal access token, instruction: * Creating a personal access token, instruction:
@ -45,26 +49,28 @@
``` ```
* attach to vm: * attach to vm:
``` ```
docker compose exec mongo bash docker compose exec mongo-1 bash
docker compose exec any-type-node-1 bash docker compose exec any-type-node-1 bash
docker compose exec any-sync-coordinator bash docker compose exec any-sync-coordinator bash
``` ```
* get current network config * get current network config
``` ```
docker compose exec mongo mongosh coordinator docker compose exec mongo-1 mongosh coordinator
db.nodeConf.find().sort( { _id: -1 } ).limit(1) db.nodeConf.find().sort( { _id: -1 } ).limit(1)
``` ```
## set specific versions ## set specific versions
use file .env use file .env
### minimal versions ### compatible versions
* any-sync-coordinator v0.0.10 you cat find compatible versions on this pages:
* any-sync-filenode v0.1.5 * stable versions, used on production - https://puppetdoc.anytype.io/api/v1/prod-any-sync-compatible-versions/
* any-sync-node v0.0.31 * unstable versions, used on test stand - https://puppetdoc.anytype.io/api/v1/stage1-any-sync-compatible-versions/
* any-sync-consensusnode v0.0.4
## usage "local build" images ## usage "local build" images
if you need to make local build binaries for any-sync-*
you can doing it by using "overrides" functional in docker-compose
* clone repos * clone repos
``` ```
install -d repos && for REPO in any-sync-{node,filenode,coordinator,consensusnode}; do if [[ ! -d repos/$REPO ]]; then git clone git@github.com:anyproto/${REPO}.git repos/$REPO; fi; done install -d repos && for REPO in any-sync-{node,filenode,coordinator,consensusnode}; do if [[ ! -d repos/$REPO ]]; then git clone git@github.com:anyproto/${REPO}.git repos/$REPO; fi; done