mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 14:07:02 +09:00
added Dockerfile-netcheck
This commit is contained in:
parent
fd43c6f3be
commit
c3a7407958
2 changed files with 29 additions and 0 deletions
12
Dockerfile-netcheck
Normal file
12
Dockerfile-netcheck
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
FROM golang:1.21.6-alpine3.19
|
||||||
|
RUN apk add --no-cache bash yq
|
||||||
|
RUN go install github.com/anyproto/any-sync-tools/any-sync-netcheck@latest
|
||||||
|
#WORKDIR /code
|
||||||
|
#HEALTHCHECK \
|
||||||
|
# --start-period=3s \
|
||||||
|
# --retries=20 \
|
||||||
|
# --interval=10s \
|
||||||
|
# --timeout=3s \
|
||||||
|
# CMD echo 'HEALTHCHECK' | nc 127.0.0.1 8000 | grep -q HEALTHCHECK
|
||||||
|
#ENTRYPOINT ./docker-generateconfig/anyconf.sh
|
|
@ -231,3 +231,20 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./etc/any-sync-admin/:/etc/any-sync-admin/
|
- ./etc/any-sync-admin/:/etc/any-sync-admin/
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
|
|
||||||
|
# any-sync-netcheck
|
||||||
|
netcheck:
|
||||||
|
depends_on:
|
||||||
|
- any-sync-consensusnode
|
||||||
|
- any-sync-filenode
|
||||||
|
- any-sync-coordinator
|
||||||
|
- any-sync-node-1
|
||||||
|
- any-sync-node-2
|
||||||
|
- any-sync-node-3
|
||||||
|
image: netcheck
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile-netcheck
|
||||||
|
volumes:
|
||||||
|
- ./:/code
|
||||||
|
tty: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue