# WARNING: This configuration disables Elasticsearch security (xpack.security.enabled=false) # and is intended for LOCAL DEVELOPMENT ONLY. Do not use in production without enabling # authentication and TLS. See: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-minimal-setup.html services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:8.11.0 container_name: elasticsearch-local environment: - discovery.type=single-node - xpack.security.enabled=false # Development only — enable for production - "ES_JAVA_OPTS=-Xms512m -Xmx512m" ports: - "9200:9200" volumes: - elasticsearch_data:/usr/share/elasticsearch/data volumes: elasticsearch_data: driver: local