Skip to content

Commit

Permalink
Add restart on-failure to cassandra
Browse files Browse the repository at this point in the history
  • Loading branch information
semkedaniil committed Nov 22, 2023
1 parent 4ebd95a commit 099dfe1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
cassandra:
container_name: rtq-cassandra
build: cassandra
restart: on-failure
environment:
- CASSANDRA_START_RPC=true
- JAVA_OPTS=-Xms2G -Xmx2G
Expand All @@ -12,8 +13,8 @@ services:
deploy:
resources:
limits:
cpus: 1
memory: 2048m
cpus: "1"
memory: 2500m
healthcheck:
test: [ "CMD", "nodetool", "status" ]
interval: 5s
Expand Down Expand Up @@ -49,7 +50,7 @@ services:
replicas: 5
resources:
limits:
cpus: 0.25
cpus: "0.25"
memory: 200m
depends_on:
cassandra:
Expand Down

0 comments on commit 099dfe1

Please sign in to comment.