Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
update es config
Browse files Browse the repository at this point in the history
  • Loading branch information
maxyzli committed Oct 10, 2023
1 parent f3a1a19 commit f51a818
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
12 changes: 9 additions & 3 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,21 @@ services:

es01:
container_name: es01
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.1
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
environment:
- node.name=es01
- cluster.initial_master_nodes=es01
- discovery.type=single-node
# JVM memory: initial and max set to 512MB.
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- bootstrap.system_call_filter=false
ports:
- 9200:9200
volumes:
- esdata01:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 30s
timeout: 30s
retries: 3

kibana:
container_name: kibana
Expand All @@ -55,6 +60,7 @@ services:
depends_on:
- es01

# Named Volumes Configuration.
volumes:
postgresql:
mongodb:
Expand Down
10 changes: 8 additions & 2 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,22 @@ services:

es01:
container_name: es01
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.1
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
restart: always
environment:
- node.name=es01
- cluster.initial_master_nodes=es01
- discovery.type=single-node
# JVM memory: initial and max set to 512MB.
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- 9200:9200
volumes:
- esdata01:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 30s
timeout: 30s
retries: 3

kibana:
container_name: kibana
Expand Down

0 comments on commit f51a818

Please sign in to comment.