47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
version: "3.4"
|
|
|
|
services:
|
|
opensearch:
|
|
container_name: opensearch
|
|
build: ./docker/opensearch
|
|
image: registry.gitlab.com/digiresilience/link/link-stack/opensearch:${LINK_STACK_VERSION}
|
|
restart: ${RESTART}
|
|
environment:
|
|
- discovery.type=single-node
|
|
- cluster.routing.allocation.disk.watermark.low=3gb
|
|
- cluster.routing.allocation.disk.watermark.high=2gb
|
|
- cluster.routing.allocation.disk.watermark.flood_stage=500mb
|
|
- cluster.info.update.interval=1m
|
|
- node.name=opensearch-node1
|
|
- bootstrap.memory_lock=true
|
|
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_ADMIN_PASSWORD}"
|
|
- compatibility.override_main_response_version=true
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
nofile:
|
|
soft: 65536
|
|
hard: 65536
|
|
volumes:
|
|
- opensearch-data:/usr/share/opensearch/data
|
|
ports:
|
|
- 9200:9200
|
|
- 9600:9600
|
|
|
|
opensearch-dashboards:
|
|
container_name: opensearch-dashboards
|
|
build: ./docker/opensearch-dashboards
|
|
image: registry.gitlab.com/digiresilience/link/link-stack/opensearch-dashboards:${LINK_STACK_VERSION}
|
|
restart: ${RESTART}
|
|
ports:
|
|
- 5601:5601
|
|
expose:
|
|
- "5601"
|
|
environment:
|
|
OPENSEARCH_HOSTS: '["https://opensearch:9200"]'
|
|
|
|
volumes:
|
|
opensearch-data:
|
|
driver: local
|