Skip to content

Commit d978730

Browse files
committed
fix(docker): disable ES disk watermarks in dev compose
Elasticsearch's default disk watermark thresholds can cause shard allocation to be blocked in local dev environments where disk space is limited. Disable watermark checks via cluster settings in the dev Docker Compose configuration to avoid this issue.
1 parent 920bcee commit d978730

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docker/dev.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,13 @@ x-api-base: &api-base
2020

2121
services:
2222
es01:
23+
environment:
24+
cluster.routing.allocation.disk.threshold_enabled: "false"
2325
ports:
2426
- "${ES_EXPOSE}:9200"
27+
es02:
28+
environment:
29+
cluster.routing.allocation.disk.threshold_enabled: "false"
2530
api:
2631
<<: *api-base
2732
# uvicorn in reload mode

0 commit comments

Comments
 (0)