appstore-1panel/apps/elastic-elasticsearch/8.14.3/docker-compose.yml
萌森 4754aefbfa ES 客户端
Signed-off-by: 萌森 <qyg2297248353@163.com>
2024-07-22 17:20:08 +08:00

40 lines
1.1 KiB
YAML

version: "3.8"
networks:
1panel-network:
external: true
services:
elasticsearch:
image: elasticsearch:8.14.3
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
tty: true
ulimits:
memlock:
soft: -1
hard: -1
ports:
- ${PANEL_APP_PORT_HTTPS}:9200
- ${PANEL_APP_PORT_API}:9300
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ${BARK_ROOT_PATH}/certs:/usr/share/elasticsearch/config/certs
- ${BARK_ROOT_PATH}/config:/usr/share/elasticsearch/config
- ${BARK_ROOT_PATH}/data:/usr/share/elasticsearch/data
- ${BARK_ROOT_PATH}/data:/usr/share/elasticsearch/logs
- ${BARK_ROOT_PATH}/data:/usr/share/elasticsearch/plugins
environment:
- ES_SETTING_HTTP_PORT=9200
- ES_SETTING_CLUSTER_NAME=elasticsearch-cluster
- ES_SETTING_LICENSE=basic
- MEM_LIMIT=1073741824
- ES_SETTING_BOOTSTRAP_MEMORY__LOCK=true