fix
This commit is contained in:
@@ -76,23 +76,25 @@ services:
|
||||
|
||||
|
||||
opensearch:
|
||||
image: opensearchproject/opensearch:3.2.0
|
||||
build:
|
||||
context: .
|
||||
dockerfile: opensearch.Dockerfile
|
||||
# No port mapping - only accessible within the Docker network
|
||||
environment:
|
||||
- cluster.name=storycove-opensearch
|
||||
- node.name=opensearch-node
|
||||
- discovery.type=single-node
|
||||
- bootstrap.memory_lock=false
|
||||
- "OPENSEARCH_JAVA_OPTS=-Xms128m -Xmx256m"
|
||||
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx1g"
|
||||
- "DISABLE_INSTALL_DEMO_CONFIG=true"
|
||||
- "DISABLE_SECURITY_PLUGIN=true"
|
||||
- "DISABLE_PERFORMANCE_ANALYZER_AGENT_CLI=true"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
memory: 2G
|
||||
reservations:
|
||||
memory: 256M
|
||||
memory: 1G
|
||||
ulimits:
|
||||
memlock:
|
||||
soft: -1
|
||||
@@ -102,18 +104,6 @@ services:
|
||||
hard: 65536
|
||||
volumes:
|
||||
- opensearch_data:/usr/share/opensearch/data
|
||||
command: >
|
||||
bash -c "
|
||||
echo 'Starting OpenSearch with debug output...'
|
||||
echo 'Java version:'
|
||||
java -version
|
||||
echo 'Memory info:'
|
||||
free -h
|
||||
echo 'Disk space:'
|
||||
df -h
|
||||
echo 'Starting OpenSearch...'
|
||||
exec /usr/share/opensearch/opensearch-docker-entrypoint.sh opensearch
|
||||
"
|
||||
networks:
|
||||
- storycove-network
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user