Skip to content

Commit 402ee13

Browse files
committed
Updated health check
1 parent 0db17d9 commit 402ee13

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

docker-compose.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,25 @@ services:
3131
- neo4j
3232
image: neo4j:4.2
3333
healthcheck:
34-
test: neo4j status
34+
test: [ "CMD", "neo4j status" ]
35+
interval: 30s
36+
timeout: 10s
37+
retries: 5
3538
expose:
3639
- 7474
3740
- 7687
41+
ports:
42+
- "7474:7474"
43+
- "7687:7687"
3844
environment:
3945
- NEO4J_AUTH=neo4j/test
4046
core1:
4147
image: neo4j:4.2-enterprise
4248
healthcheck:
43-
test: neo4j status
49+
test: [ "CMD", "neo4j status" ]
50+
interval: 30s
51+
timeout: 10s
52+
retries: 5
4453
networks:
4554
- neo4j
4655
expose:
@@ -49,6 +58,9 @@ services:
4958
- 5000
5059
- 6000
5160
- 7000
61+
ports:
62+
- "7475:7474"
63+
- "7688:7687"
5264
environment:
5365
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
5466
- NEO4J_AUTH=neo4j/test
@@ -62,7 +74,10 @@ services:
6274
core2:
6375
image: neo4j:4.2-enterprise
6476
healthcheck:
65-
test: neo4j status
77+
test: [ "CMD", "neo4j status" ]
78+
interval: 30s
79+
timeout: 10s
80+
retries: 5
6681
networks:
6782
- neo4j
6883
expose:
@@ -84,7 +99,10 @@ services:
8499
core3:
85100
image: neo4j:4.2-enterprise
86101
healthcheck:
87-
test: neo4j status
102+
test: [ "CMD", "neo4j status" ]
103+
interval: 30s
104+
timeout: 10s
105+
retries: 5
88106
networks:
89107
- neo4j
90108
expose:
@@ -106,7 +124,10 @@ services:
106124
readreplica1:
107125
image: neo4j:4.2-enterprise
108126
healthcheck:
109-
test: neo4j status
127+
test: [ "CMD", "neo4j status" ]
128+
interval: 30s
129+
timeout: 10s
130+
retries: 5
110131
networks:
111132
- neo4j
112133
expose:

0 commit comments

Comments
 (0)