1
0
Fork 0
mirror of https://github.com/anyproto/any-sync-dockercompose.git synced 2025-06-08 05:47:03 +09:00

added Dockerfile-netcheck

This commit is contained in:
Grigory Efimov 2024-05-16 13:20:42 -03:00
parent fd43c6f3be
commit c3a7407958
No known key found for this signature in database
GPG key ID: 0A88C34DFA7FD939
2 changed files with 29 additions and 0 deletions

12
Dockerfile-netcheck Normal file
View 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

View file

@ -231,3 +231,20 @@ services:
volumes:
- ./etc/any-sync-admin/:/etc/any-sync-admin/
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