After Adding Elastic Search Getting Following Error

hello @onkar_chavan

can you describe the process you have followed to add elastic search?

Hello @antonio.perez
So, I cloned temporal docker-build after doing that I found out that the folder cli, tctl, temporal were empty so then I Clone cli folder, tctl and temporal folder using git clone .
After that I tried Building Images using following command step by step:-

  1. cd docker/base-images
  2. docker build . -f base-builder.Dockerfile -t temporalio/base-builder:onkar
  3. docker build . -f base-server.Dockerfile -t temporalio/base-server:onkar
  4. cd …/…
    5 .docker build . -f server.Dockerfile -t temporalio/server:onkar
  5. docker build . -f admin-tools.Dockerfile -t temporalio/admin-tools:onkar --build-arg SERVER_IMAGE=temporalio/server:onkar
  6. docker build . -f auto-setup.Dockerfile -t temporalio/auto-setup:onkar2–build-arg SERVER_IMAGE=temporalio/server:onkar --build-arg ADMIN_TOOLS_IMAGE=temporalio/admin-tools:onkar

After Doing that I replaced my Image in docker-compose file which I clone using git clone GitHub - temporalio/docker-compose: Temporal docker-compose files

My docker-compose.ymal file looked like below:-
version: “3.5”
services:
elasticsearch:
container_name: temporal-elasticsearch
environment:
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.low=512mb
- cluster.routing.allocation.disk.watermark.high=256mb
- cluster.routing.allocation.disk.watermark.flood_stage=128mb
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms256m -Xmx256m
- xpack.security.enabled=false
image: elasticsearch:${ELASTICSEARCH_VERSION}
networks:
- temporal-network
expose:
- 9200
volumes:
- /var/lib/elasticsearch/data
postgresql:
container_name: temporal-postgresql
environment:
POSTGRES_PASSWORD: temporal
POSTGRES_USER: temporal
image: postgres:${POSTGRESQL_VERSION}
networks:
- temporal-network
expose:
- 5432
volumes:
- /var/lib/postgresql/data
temporal:
container_name: temporal
depends_on:
- postgresql
- elasticsearch
environment:
- DB=postgresql
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=postgresql
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
- ENABLE_ES=true
- ES_SEEDS=elasticsearch
- ES_VERSION=v7
image: temporalio/auto-setup:onkar
networks:
- temporal-network
ports:
- 7233:7233
labels:
kompose.volume.type: configMap
volumes:
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
temporal-admin-tools:
container_name: temporal-admin-tools
depends_on:
- temporal
environment:
- TEMPORAL_CLI_ADDRESS=temporal:7233
image: temporalio/admin-tools:onkar
networks:
- temporal-network
stdin_open: true
tty: true
temporal-ui:
container_name: temporal-ui
depends_on:
- temporal
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CORS_ORIGINS=http://localhost:3000
image: temporalio/ui:${TEMPORAL_UI_VERSION}
networks:
- temporal-network
ports:
- 8080:8080
networks:
temporal-network:
driver: bridge
name: temporal-network
Then I got following Error.

is this the same While Enabling Elastic Search Getting Error ?

Yes on command prompt side i get this error after doing docker-compose up