From 711ebf59b7a10f99fd60d24adf7282b60fcaf20c Mon Sep 17 00:00:00 2001 From: Grigory Efimov Date: Mon, 20 Mar 2023 17:58:22 +0000 Subject: [PATCH] add specific versions support --- .env | 4 ++++ README.md | 9 +++++++++ docker-compose.yml | 10 +++++----- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 740ee6b..abb7f0e 100644 --- a/.env +++ b/.env @@ -1,2 +1,6 @@ AWS_ACCESS_KEY_ID=testid AWS_SECRET_ACCESS_KEY=testkey + +ANY_SYNC_NODE_VERSION=latest +ANY_SYNC_FILENODE_VERSION=latest +ANY_SYNC_COORDINATOR_VERSION=latest diff --git a/README.md b/README.md index 1d08f33..46ffbd9 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,12 @@ * stop stand: ```make stop``` * clean unused docker objects: ```make clean``` * clean tmp files for any-sync-node and s3: ```cleanTmpFiles``` +* show logs: +``` +docker-compose logs -f any-sync-node +docker-compose logs -f any-sync-filenode +docker-compose logs -f +``` + +## set specific versions +use file .env diff --git a/docker-compose.yml b/docker-compose.yml index 7d89079..cf37b19 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,7 @@ services: volumes: - ./s3_root:/s3_root any-sync-node-1: - image: "ghcr.io/anytypeio/any-sync-node:latest" + image: "ghcr.io/anytypeio/any-sync-node:${ANY_SYNC_NODE_VERSION}" ports: - 4431:443 - 8081:8080 @@ -25,7 +25,7 @@ services: memory: 500M command: ["/any-sync-node", "-c", "/etc/any-sync-node/config.yml"] any-sync-node-2: - image: "ghcr.io/anytypeio/any-sync-node:latest" + image: "ghcr.io/anytypeio/any-sync-node:${ANY_SYNC_NODE_VERSION}" ports: - 4432:443 - 8082:8080 @@ -39,7 +39,7 @@ services: memory: 500M command: ["/any-sync-node", "-c", "/etc/any-sync-node/config.yml"] any-sync-node-3: - image: "ghcr.io/anytypeio/any-sync-node:latest" + image: "ghcr.io/anytypeio/any-sync-node:${ANY_SYNC_NODE_VERSION}" ports: - 4433:443 - 8083:8080 @@ -53,7 +53,7 @@ services: memory: 500M command: ["/any-sync-node", "-c", "/etc/any-sync-node/config.yml"] any-sync-filenode: - image: "ghcr.io/anytypeio/any-sync-filenode:latest" + image: "ghcr.io/anytypeio/any-sync-filenode:${ANY_SYNC_FILENODE_VERSION}" ports: - 4434:443 - 8004:8000 @@ -66,7 +66,7 @@ services: memory: 500M command: ["/any-sync-filenode", "-c", "/etc/any-sync-filenode/config.yml"] any-sync-coordinator: - image: "ghcr.io/anytypeio/any-sync-coordinator:latest" + image: "ghcr.io/anytypeio/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}" ports: - 4435:443 - 8005:8000