Skip to content

Commit 099dfe1

Browse files
committed
Add restart on-failure to cassandra
1 parent 4ebd95a commit 099dfe1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docker-compose.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ services:
33
cassandra:
44
container_name: rtq-cassandra
55
build: cassandra
6+
restart: on-failure
67
environment:
78
- CASSANDRA_START_RPC=true
89
- JAVA_OPTS=-Xms2G -Xmx2G
@@ -12,8 +13,8 @@ services:
1213
deploy:
1314
resources:
1415
limits:
15-
cpus: 1
16-
memory: 2048m
16+
cpus: "1"
17+
memory: 2500m
1718
healthcheck:
1819
test: [ "CMD", "nodetool", "status" ]
1920
interval: 5s
@@ -49,7 +50,7 @@ services:
4950
replicas: 5
5051
resources:
5152
limits:
52-
cpus: 0.25
53+
cpus: "0.25"
5354
memory: 200m
5455
depends_on:
5556
cassandra:

0 commit comments

Comments
 (0)