link-stack/docker/compose/opensearch.yml

60 lines
2.2 KiB
YAML
Raw Permalink Normal View History

2023-06-21 12:48:07 +00:00
version: "3.4"
services:
opensearch:
container_name: opensearch
2024-03-16 23:11:48 +01:00
build: ../opensearch
2023-06-21 12:48:07 +00:00
image: registry.gitlab.com/digiresilience/link/link-stack/opensearch:${LINK_STACK_VERSION}
restart: ${RESTART}
2024-03-03 18:13:26 +01:00
environment:
- discovery.type=single-node
2024-03-16 12:51:56 +01:00
# - plugins.security.ssl.transport.enforce_hostname_verification=false
# - plugins.security.ssl.transport.resolve_hostname=false
2024-03-03 18:13:26 +01:00
- 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
2024-03-16 12:51:56 +01:00
# - config.dynamic.http.xff.enabled=true
# - config.dynamic.http.xff.remoteIpHeader="x-forwarded-for"
# - config.dynamic.http.xff.internalProxies=".*"
2024-03-03 18:13:26 +01:00
- 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
2024-03-16 12:51:56 +01:00
- ../opensearch/config.yml:/usr/share/opensearch/config/opensearch-security/config.yml
2024-03-03 18:13:26 +01:00
ports:
- 9200:9200
- 9600:9600
2023-06-21 12:48:07 +00:00
opensearch-dashboards:
container_name: opensearch-dashboards
2024-03-16 23:11:48 +01:00
build: ../opensearch-dashboards
2023-06-21 12:48:07 +00:00
image: registry.gitlab.com/digiresilience/link/link-stack/opensearch-dashboards:${LINK_STACK_VERSION}
restart: ${RESTART}
2024-03-03 18:13:26 +01:00
ports:
- 5601:5601
expose:
- "5601"
2024-03-16 12:51:56 +01:00
volumes:
- ../opensearch-dashboards/opensearch_dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml
2024-03-03 18:13:26 +01:00
environment:
OPENSEARCH_HOSTS: '["https://opensearch:9200"]'
2024-03-16 12:51:56 +01:00
# OPENSEARCH_SECURITY_AUTH_TYPE: "proxy"
# OPENSEARCH_SECURITY_PROXYCACHE_USER_HEADER: "x-proxy-user"
# OPENSEARCH_SECURITY_PROXYCACHE_ROLES_HEADER: "x-proxy-roles"
# OPENSEARCH_REQUESTHEADERSALLOWLIST: '["securitytenant","Authorization","x-forwarded-for","x-proxy-user","x-proxy-roles"]'
2023-06-21 12:48:07 +00:00
volumes:
opensearch-data:
driver: local