DocSpace-buildtools/install/docker/opensearch.yml
Evgeniy Antonyuk fde212c05c
Add opensearch-dashboards and fluent-bit to retrieve docker logs (#170)
* Migration to opensearch

* Implement indexes update on version change

* Add opensearch-dashboard and logstash to retrieve docker logs

* Replace logstash with fluent-bit to retrieve docker logs

* Add running fluent-bit logging to OCI

* Change fluent-bit supply to package delivery

* Implement index cleanup every 30 days via lua script

* Implement index cleanup via exec on timer

* Optimize indexes update on version change

* Add a check that fluent-bit has installed successfully

* Add the dashboard location and authorization for it

* Move dashboards location to router

* Migration to opensearch in docspace.profiles.yml

* Replace the naming with dashboards

* Add password generation for /dashboards/
2024-04-17 15:08:49 +03:00

36 lines
957 B
YAML

services:
onlyoffice-opensearch:
image: onlyoffice/opensearch:${ELK_VERSION}
container_name: ${ELK_CONTAINER_NAME}
restart: always
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms4g -Xmx4g -Dlog4j2.formatMsgNoLookups=true"
- "indices.fielddata.cache.size=30%"
- "indices.memory.index_buffer_size=30%"
- "DISABLE_INSTALL_DEMO_CONFIG=true"
- "DISABLE_SECURITY_PLUGIN=true"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
hard: 65536
volumes:
- os_data:/usr/share/opensearch/data
expose:
- "9200"
- "9600" # required for Performance Analyzer
ports:
- 127.0.0.1:9200:9200
networks:
default:
name: ${NETWORK_NAME}
external: true
volumes:
os_data: