fix
This commit is contained in:
@@ -83,16 +83,16 @@ services:
|
|||||||
- node.name=opensearch-node
|
- node.name=opensearch-node
|
||||||
- discovery.type=single-node
|
- discovery.type=single-node
|
||||||
- bootstrap.memory_lock=false
|
- bootstrap.memory_lock=false
|
||||||
- "OPENSEARCH_JAVA_OPTS=-Xms256m -Xmx512m -Dlog4j2.formatMsgNoLookups=true --add-opens=java.base/java.lang=ALL-UNNAMED"
|
- "OPENSEARCH_JAVA_OPTS=-Xms128m -Xmx256m -XX:+UseSerialGC -Djava.security.policy=all.policy"
|
||||||
- "DISABLE_INSTALL_DEMO_CONFIG=true"
|
- "DISABLE_INSTALL_DEMO_CONFIG=true"
|
||||||
- "DISABLE_SECURITY_PLUGIN=true"
|
- "DISABLE_SECURITY_PLUGIN=true"
|
||||||
- "DISABLE_PERFORMANCE_ANALYZER_AGENT_CLI=true"
|
- "DISABLE_PERFORMANCE_ANALYZER_AGENT_CLI=true"
|
||||||
- "logger.root=INFO"
|
deploy:
|
||||||
- "logger.org.opensearch=DEBUG"
|
resources:
|
||||||
- "action.destructive_requires_name=false"
|
limits:
|
||||||
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=admin123"
|
memory: 512M
|
||||||
- "cluster.initial_cluster_manager_nodes=opensearch-node"
|
reservations:
|
||||||
- "network.host=0.0.0.0"
|
memory: 256M
|
||||||
ulimits:
|
ulimits:
|
||||||
memlock:
|
memlock:
|
||||||
soft: -1
|
soft: -1
|
||||||
@@ -102,7 +102,18 @@ services:
|
|||||||
hard: 65536
|
hard: 65536
|
||||||
volumes:
|
volumes:
|
||||||
- opensearch_data:/usr/share/opensearch/data
|
- opensearch_data:/usr/share/opensearch/data
|
||||||
user: "1000:1000"
|
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:
|
networks:
|
||||||
- storycove-network
|
- storycove-network
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user