Skip to content

Commit

Permalink
Update docker-compose.yaml (#5766)
Browse files Browse the repository at this point in the history
Docker-compose updated to fix Elastic Search bug on MacOS 15.2 with M4
chip.

# Description
With MacOS 15.2 on M4 chips, a bug prevents Elastic Search from loading,
causing Argilla to stop working. One solution was to upgrade the Elastic
version by adding :
```yaml
elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:8.17.0
    environment:
      - ES_JAVA_OPTS=-Xms512m -Xmx512m -XX:UseSVE=0
      - CLI_JAVA_OPTS=-XX:UseSVE=0
      - node.name=elasticsearch
      - cluster.name=es-argilla-local
      - discovery.type=single-node
      - cluster.routing.allocation.disk.threshold_enabled=false
      - xpack.security.enabled=false
    ulimits:
      memlock:
        soft: -1
        hard: -1
    networks:
      - argilla
    volumes:
      - elasticdata:/usr/share/elasticsearch/data/
```

Closes #5760

**Type of change**
- Bug fix (non-breaking change which fixes an issue)

**How Has This Been Tested**
The tests were carried out manually, using a complete annotation with
the Python SDK.
  • Loading branch information
louisbrulenaudet authored Jan 20, 2025
1 parent a9284f7 commit 258ed82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/deployments/docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ services:
- postgresdata:/var/lib/postgresql/data

elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.2
image: docker.elastic.co/elasticsearch/elasticsearch:8.17.0
environment:
- ES_JAVA_OPTS=-Xms512m -Xmx512m -XX:UseSVE=0
- CLI_JAVA_OPTS=-XX:UseSVE=0
- node.name=elasticsearch
- cluster.name=es-argilla-local
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- cluster.routing.allocation.disk.threshold_enabled=false
- xpack.security.enabled=false
ulimits:
Expand Down

0 comments on commit 258ed82

Please sign in to comment.