Skip to content

Commit dc73ba4

Browse files
committed
Add healthcheck to make sure it comes up right
1 parent d17ac91 commit dc73ba4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker-compose.elasticsearch.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ services:
2121
volumes:
2222
- elasticsearch:/usr/share/elasticsearch/data
2323
- ".:/mnt/ddev_config"
24+
healthcheck:
25+
test: ["CMD-SHELL", "curl --fail -s localhost:9200"]
2426

2527
volumes:
2628
elasticsearch:

0 commit comments

Comments
 (0)