This commit is contained in:
Stefan Hardegger
2025-09-21 17:21:49 +02:00
parent 634de0b6a5
commit a037dd92af
2 changed files with 59 additions and 16 deletions

View File

@@ -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