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

Switched from always to unless-stopped

This commit is contained in:
pendyurinandrey 2024-08-28 13:32:53 +03:00
parent 889c163a82
commit 900000ae4d

View file

@ -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