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 #63 from anyproto/netcheck

netcheck
This commit is contained in:
Grigory Efimov 2024-05-31 14:03:22 -03:00 committed by GitHub
commit 168735d1da
Signed by: github
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

View file

@ -10,6 +10,7 @@ ANY_SYNC_NODE_VERSION=prod
ANY_SYNC_FILENODE_VERSION=prod
ANY_SYNC_COORDINATOR_VERSION=prod
ANY_SYNC_CONSENSUSNODE_VERSION=prod
ANY_SYNC_TOOLS_VERSION=latest
MONGO_VERSION=7.0.2
REDIS_VERSION=7.2.0-v6

View file

@ -220,3 +220,22 @@ services:
limits:
memory: 500M
restart: on-failure
# any-sync-netcheck
netcheck:
image: "ghcr.io/anyproto/any-sync-tools:${ANY_SYNC_TOOLS_VERSION}"
depends_on:
- any-sync-consensusnode
- any-sync-filenode
- any-sync-coordinator
- any-sync-node-1
- any-sync-node-2
- any-sync-node-3
volumes:
- ./:/code
command: "tail -f /dev/null"
tty: true
healthcheck:
test: any-sync-netcheck -c /code/storage/docker-generateconfig/nodes.yml 2>&1| grep -P 'netcheck\s+success'
interval: 60s
start_period: 5s