diff --git a/Dockerfile-generateconfig-anyconf b/Dockerfile-generateconfig-anyconf index e4558b8..1e22e77 100644 --- a/Dockerfile-generateconfig-anyconf +++ b/Dockerfile-generateconfig-anyconf @@ -1,6 +1,5 @@ # syntax=docker/dockerfile:1 -FROM golang:1.23-alpine +FROM ghcr.io/anyproto/any-sync-tools RUN apk add --no-cache bash yq -RUN go install github.com/anyproto/any-sync-tools/anyconf@latest WORKDIR /code ENTRYPOINT ["bash", "/code/docker-generateconfig/anyconf.sh"] diff --git a/docker-compose.yml b/docker-compose.yml index d5ceeba..1f893f4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -239,11 +239,11 @@ services: - any-sync-node-2 - any-sync-node-3 volumes: - - "${STORAGE_DIR}:/code/storage:Z" + - "${STORAGE_DIR}/docker-generateconfig/nodes.yml:/app/nodes.yml:Z" command: ["tail", "-f", "/dev/null"] stop_signal: SIGKILL tty: true healthcheck: - test: any-sync-netcheck -c /code/storage/docker-generateconfig/nodes.yml 2>&1| grep -E 'netcheck\s+success' + test: any-sync-netcheck -c nodes.yml 2>&1| grep -E 'netcheck\s+success' interval: 10s start_period: 5s