33 lines
764 B
YAML
33 lines
764 B
YAML
version: "3"
|
|
services:
|
|
onlyoffice-elasticsearch:
|
|
image: onlyoffice/elasticsearch:${ELK_VERSION}
|
|
container_name: ${ELK_CONTAINER_NAME}
|
|
restart: always
|
|
environment:
|
|
- discovery.type=single-node
|
|
- bootstrap.memory_lock=true
|
|
- "ES_JAVA_OPTS=-Xms4g -Xmx4g -Dlog4j2.formatMsgNoLookups=true"
|
|
- "indices.fielddata.cache.size=30%"
|
|
- "indices.memory.index_buffer_size=30%"
|
|
- "ingest.geoip.downloader.enabled=false"
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
nofile:
|
|
soft: 65535
|
|
hard: 65535
|
|
volumes:
|
|
- es_data:/usr/share/elasticsearch/data
|
|
expose:
|
|
- "9200"
|
|
- "9300"
|
|
networks:
|
|
default:
|
|
name: ${NETWORK_NAME}
|
|
external: true
|
|
|
|
volumes:
|
|
es_data:
|