mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 05:47:03 +09:00
commit
168735d1da
2 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue