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
.aws | ||
etc | ||
.env | ||
.gitignore | ||
docker-compose.any-sync-coordinator.yml | ||
docker-compose.any-sync-filenode.yml | ||
docker-compose.any-sync-node-1.yml | ||
docker-compose.any-sync-node-all.yml | ||
docker-compose.yml | ||
Dockerfile | ||
LICENSE | ||
Makefile | ||
README.md |
test stand in docker-compose
prepare
-
Creating a personal access token, instruction:
- go to https://github.com/settings/tokens/
- push "generate new token (classic)" minimal permissions "read:packages"
-
login in ghcr.io:
echo <you token>| docker login ghcr.io -u <github username> --password-stdin
-
installing docker and docker compose https://docs.docker.com/compose/install/linux/
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