1
0
Fork 0
mirror of https://github.com/anyproto/any-sync-dockercompose.git synced 2025-06-08 05:47:03 +09:00
docker-compose for testing any-sync
Find a file
2023-08-18 16:30:48 +03:00
.aws add s3-emulator 2023-08-18 16:30:39 +03:00
.github added .github/CODEOWNERS 2023-08-18 16:30:48 +03:00
etc added anyconf for generate configs 2023-08-18 16:30:48 +03:00
.env added anyconf for generate configs 2023-08-18 16:30:48 +03:00
.gitignore OPS-137 add support local build docker images 2023-08-18 16:30:48 +03:00
docker-compose-generateconfig.yml added anyconf for generate configs 2023-08-18 16:30:48 +03:00
docker-compose.any-sync-consensusnode.yml added consensusnode 2023-08-18 16:30:48 +03:00
docker-compose.any-sync-coordinator.yml OPS-137 add support local build docker images 2023-08-18 16:30:48 +03:00
docker-compose.any-sync-filenode.yml OPS-137 add support local build docker images 2023-08-18 16:30:48 +03:00
docker-compose.any-sync-node-1.yml OPS-137 add support local build docker images 2023-08-18 16:30:48 +03:00
docker-compose.any-sync-node-all.yml OPS-137 add support local build docker images 2023-08-18 16:30:48 +03:00
docker-compose.yml added anyconf for generate configs 2023-08-18 16:30:48 +03:00
Dockerfile Dockerfile fixed make 2023-08-18 16:30:48 +03:00
Dockerfile-generateconfig added anyconf for generate configs 2023-08-18 16:30:48 +03:00
gen.sh added anyconf for generate configs 2023-08-18 16:30:48 +03:00
LICENSE first commit 2023-03-01 03:01:13 +02:00
Makefile added anyconf for generate configs 2023-08-18 16:30:48 +03:00
README.md edited README.md 2023-08-18 16:30:48 +03:00

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

usage

  • start stand:

    make start
    
  • stop stand:

    make stop
    
  • restart stand:

    make restart
    
  • update image versions and start:

    make update
    
  • clean unused docker objects:

    make clean
    
  • clean tmp files - deleting data for redis, mongo, s3, any-sync-*:

    make cleanTmp
    
  • show logs:

    docker-compose logs -f any-sync-node
    docker-compose logs -f any-sync-filenode
    docker-compose logs -f
    
  • attach to vm:

    docker compose exec mongo-1 bash
    docker compose exec any-type-node-1 bash
    docker compose exec any-sync-coordinator bash
    
  • get current network config

    docker compose exec mongo-1 mongosh coordinator
    db.nodeConf.find().sort( { _id: -1 } ).limit(1)
    

set specific versions

use file .env

compatible versions

you cat find compatible versions on this pages:

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
    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
    
  • create a symlink to the "override file" you need (or you can create docker-compose.override.yml by your self)
    ln -F -s docker-compose.any-sync-node-1.yml docker-compose.override.yml
    
  • restart docker compose
    make restart