From a41f8b7e20892659ae1e2ca6376fe9da0d8816bf Mon Sep 17 00:00:00 2001 From: pendyurinandrey Date: Tue, 27 Aug 2024 19:16:47 +0300 Subject: [PATCH 1/5] Switched to restart always --- .gitignore | 1 + docker-compose.yml | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 89287b4..7434398 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /.env /.env.override /account_stop.json +/.idea \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 1ea7eb2..1128c7a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,6 +25,7 @@ services: generateconfig-processing: condition: service_completed_successfully image: "mongo:${MONGO_VERSION}" + restart: always command: ["--replSet", "${MONGO_REPLICA_SET}", "--port", "${MONGO_1_PORT}"] ports: - "${MONGO_1_PORT}:${MONGO_1_PORT}" @@ -117,7 +118,7 @@ services: resources: limits: memory: 500M - restart: on-failure + restart: always any-sync-filenode: image: "ghcr.io/anyproto/any-sync-filenode:${ANY_SYNC_FILENODE_VERSION}" @@ -140,7 +141,7 @@ services: resources: limits: memory: 500M - restart: on-failure + restart: always any-sync-node-1: image: "ghcr.io/anyproto/any-sync-node:${ANY_SYNC_NODE_VERSION}" @@ -160,7 +161,7 @@ services: resources: limits: memory: 500M - restart: on-failure + restart: always any-sync-node-2: image: "ghcr.io/anyproto/any-sync-node:${ANY_SYNC_NODE_VERSION}" @@ -180,7 +181,7 @@ services: resources: limits: memory: 500M - restart: on-failure + restart: always any-sync-node-3: image: "ghcr.io/anyproto/any-sync-node:${ANY_SYNC_NODE_VERSION}" @@ -200,7 +201,7 @@ services: resources: limits: memory: 500M - restart: on-failure + restart: always any-sync-consensusnode: image: "ghcr.io/anyproto/any-sync-consensusnode:${ANY_SYNC_CONSENSUSNODE_VERSION}" @@ -218,7 +219,7 @@ services: resources: limits: memory: 500M - restart: on-failure + restart: always # any-sync-netcheck netcheck: From 420dff4bd6f0583e7de0fb5b99d1f96d697eacc5 Mon Sep 17 00:00:00 2001 From: pendyurinandrey Date: Tue, 27 Aug 2024 19:47:39 +0300 Subject: [PATCH 2/5] Added restart-always for any-sync-tools --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 1128c7a..288bc89 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -224,6 +224,7 @@ services: # any-sync-netcheck netcheck: image: "ghcr.io/anyproto/any-sync-tools:${ANY_SYNC_TOOLS_VERSION}" + restart: always depends_on: - any-sync-consensusnode - any-sync-filenode From afbeb1bfa61a32ead3e6e0cab8bed16380b4babf Mon Sep 17 00:00:00 2001 From: pendyurinandrey Date: Tue, 27 Aug 2024 20:54:51 +0300 Subject: [PATCH 3/5] Clean up --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7434398..49b14c3 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,4 @@ /repos/ /.env /.env.override -/account_stop.json -/.idea \ No newline at end of file +/account_stop.json \ No newline at end of file From 889c163a82463b17b1b621b7ba6e13b114edf8ad Mon Sep 17 00:00:00 2001 From: pendyurinandrey Date: Tue, 27 Aug 2024 21:19:03 +0300 Subject: [PATCH 4/5] Clean up --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 49b14c3..89287b4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ /repos/ /.env /.env.override -/account_stop.json \ No newline at end of file +/account_stop.json From 900000ae4d7c57acc2eb7a9557b103f3067701f8 Mon Sep 17 00:00:00 2001 From: pendyurinandrey Date: Wed, 28 Aug 2024 13:32:53 +0300 Subject: [PATCH 5/5] Switched from always to unless-stopped --- docker-compose.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 288bc89..9b734da 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,7 +25,7 @@ services: generateconfig-processing: condition: service_completed_successfully image: "mongo:${MONGO_VERSION}" - restart: always + restart: unless-stopped command: ["--replSet", "${MONGO_REPLICA_SET}", "--port", "${MONGO_1_PORT}"] ports: - "${MONGO_1_PORT}:${MONGO_1_PORT}" @@ -41,7 +41,7 @@ services: generateconfig-processing: condition: service_completed_successfully image: "redis/redis-stack-server:${REDIS_VERSION}" - restart: always + restart: unless-stopped command: ["redis-server", "--port", "${REDIS_PORT}", "--dir", "/data/", "--appendonly", "yes", "--maxmemory", "256mb", "--maxmemory-policy", "noeviction", "--protected-mode", "no", "--loadmodule", "/opt/redis-stack/lib/redisbloom.so"] ports: - "${REDIS_PORT}:${REDIS_PORT}" @@ -55,7 +55,7 @@ services: minio: image: "minio/minio:${MINIO_VERSION}" - restart: always + restart: unless-stopped command: ["server", "/data", "--console-address", ":${MINIO_WEB_PORT}", "--address", ":${MINIO_PORT}"] environment: MINIO_ROOT_USER: "${AWS_ACCESS_KEY_ID}" @@ -118,7 +118,7 @@ services: resources: limits: memory: 500M - restart: always + restart: unless-stopped any-sync-filenode: image: "ghcr.io/anyproto/any-sync-filenode:${ANY_SYNC_FILENODE_VERSION}" @@ -141,7 +141,7 @@ services: resources: limits: memory: 500M - restart: always + restart: unless-stopped any-sync-node-1: image: "ghcr.io/anyproto/any-sync-node:${ANY_SYNC_NODE_VERSION}" @@ -161,7 +161,7 @@ services: resources: limits: memory: 500M - restart: always + restart: unless-stopped any-sync-node-2: image: "ghcr.io/anyproto/any-sync-node:${ANY_SYNC_NODE_VERSION}" @@ -181,7 +181,7 @@ services: resources: limits: memory: 500M - restart: always + restart: unless-stopped any-sync-node-3: image: "ghcr.io/anyproto/any-sync-node:${ANY_SYNC_NODE_VERSION}" @@ -201,7 +201,7 @@ services: resources: limits: memory: 500M - restart: always + restart: unless-stopped any-sync-consensusnode: image: "ghcr.io/anyproto/any-sync-consensusnode:${ANY_SYNC_CONSENSUSNODE_VERSION}" @@ -219,12 +219,12 @@ services: resources: limits: memory: 500M - restart: always + restart: unless-stopped # any-sync-netcheck netcheck: image: "ghcr.io/anyproto/any-sync-tools:${ANY_SYNC_TOOLS_VERSION}" - restart: always + restart: unless-stopped depends_on: - any-sync-consensusnode - any-sync-filenode