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-07-17 14:28:49 +03:00
.aws add s3-emulator 2023-03-20 11:09:52 +00:00
etc updated etc/* for release 2023-06-09 14:46:01 +03:00
.env add specific versions support 2023-03-20 17:58:22 +00:00
.gitignore OPS-137 add support local build docker images 2023-05-12 02:02:34 +03:00
docker-compose.any-sync-coordinator.yml OPS-137 add support local build docker images 2023-05-12 02:02:34 +03:00
docker-compose.any-sync-filenode.yml OPS-137 add support local build docker images 2023-05-12 02:02:34 +03:00
docker-compose.any-sync-node-1.yml OPS-137 add support local build docker images 2023-05-12 02:02:34 +03:00
docker-compose.any-sync-node-all.yml OPS-137 add support local build docker images 2023-05-12 02:02:34 +03:00
docker-compose.any-sync-tools.yml added docker-compose.any-sync-tools.yml 2023-07-17 14:28:49 +03:00
docker-compose.yml first imports 2023-05-23 17:58:22 +02:00
Dockerfile Dockerfile fixed make 2023-05-12 18:01:27 +03:00
LICENSE first commit 2023-03-01 03:01:13 +02:00
Makefile Dockerfile fixed make 2023-05-12 18:01:27 +03:00
README.md first imports 2023-05-23 17:58:22 +02:00

test stand in docker-compose

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 bash
    docker compose exec any-type-node-1 bash
    docker compose exec any-sync-coordinator bash
    

set specific versions

use file .env

minimal versions

  • any-sync-coordinator v0.0.10
  • any-sync-filenode v0.1.5
  • any-sync-node v0.0.31

usage "local build" images

  • clone repos
    install -d repos && for REPO in any-sync-{node,filenode,coordinator}; 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