Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made the restart policies of Docker containers more consistent #94

Merged
merged 5 commits into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ services:
generateconfig-processing:
condition: service_completed_successfully
image: "mongo:${MONGO_VERSION}"
restart: unless-stopped
command: ["--replSet", "${MONGO_REPLICA_SET}", "--port", "${MONGO_1_PORT}"]
ports:
- "${MONGO_1_PORT}:${MONGO_1_PORT}"
Expand All @@ -40,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}"
Expand All @@ -54,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}"
Expand Down Expand Up @@ -117,7 +118,7 @@ services:
resources:
limits:
memory: 500M
restart: on-failure
restart: unless-stopped

any-sync-filenode:
image: "ghcr.io/anyproto/any-sync-filenode:${ANY_SYNC_FILENODE_VERSION}"
Expand All @@ -140,7 +141,7 @@ services:
resources:
limits:
memory: 500M
restart: on-failure
restart: unless-stopped

any-sync-node-1:
image: "ghcr.io/anyproto/any-sync-node:${ANY_SYNC_NODE_VERSION}"
Expand All @@ -160,7 +161,7 @@ services:
resources:
limits:
memory: 500M
restart: on-failure
restart: unless-stopped

any-sync-node-2:
image: "ghcr.io/anyproto/any-sync-node:${ANY_SYNC_NODE_VERSION}"
Expand All @@ -180,7 +181,7 @@ services:
resources:
limits:
memory: 500M
restart: on-failure
restart: unless-stopped

any-sync-node-3:
image: "ghcr.io/anyproto/any-sync-node:${ANY_SYNC_NODE_VERSION}"
Expand All @@ -200,7 +201,7 @@ services:
resources:
limits:
memory: 500M
restart: on-failure
restart: unless-stopped

any-sync-consensusnode:
image: "ghcr.io/anyproto/any-sync-consensusnode:${ANY_SYNC_CONSENSUSNODE_VERSION}"
Expand All @@ -218,11 +219,12 @@ services:
resources:
limits:
memory: 500M
restart: on-failure
restart: unless-stopped

# any-sync-netcheck
netcheck:
image: "ghcr.io/anyproto/any-sync-tools:${ANY_SYNC_TOOLS_VERSION}"
restart: unless-stopped
depends_on:
- any-sync-consensusnode
- any-sync-filenode
Expand Down
Loading