Skip to content

Commit

Permalink
simplify docker compose for search service
Browse files Browse the repository at this point in the history
Signed-off-by: pogi7 <[email protected]>
  • Loading branch information
pogi7 committed Dec 30, 2023
1 parent afdabe3 commit c269a9c
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions src/search/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
version: '3.0'

version: '3'
services:
es01:
image: "docker.elastic.co/elasticsearch/elasticsearch:8.10.2"
deploy:
resources:
limits:
memory: 2g
reservations:
memory: 1g
elasticsearch:
image: elasticsearch:8.11.0
ports:
- "9200:9200"
- 9200:9200
- 9300:9300
environment:
- discovery.type=single-node
- xpack.security.enabled=true
- ES_JAVA_OPTS=-Xms256m -Xmx256m
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./data/node1:/usr/share/elasticsearch/data
- xpack.security.enabled=false

0 comments on commit c269a9c

Please sign in to comment.