mirror of
https://github.com/haiwen/seafile-admin-docs.git
synced 2025-12-26 02:32:50 +00:00
feat: elasticsearch.yml
This commit is contained in:
parent
e81551c5ea
commit
479fdf3d45
|
|
@ -0,0 +1,22 @@
|
|||
services:
|
||||
elasticsearch:
|
||||
image: ${SEAFILE_ELASTICSEARCH_IMAGE:-elasticsearch:8.15.0}
|
||||
container_name: seafile-elasticsearch
|
||||
environment:
|
||||
- discovery.type=single-node
|
||||
- bootstrap.memory_lock=true
|
||||
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
|
||||
- "xpack.security.enabled=false"
|
||||
ulimits:
|
||||
memlock:
|
||||
soft: -1
|
||||
hard: -1
|
||||
mem_limit: 4g
|
||||
volumes:
|
||||
- "${SEAFILE_ELASTICSEARCH_VOLUME:-/opt/seafile-elasticsearch/data}:/usr/share/elasticsearch/data"
|
||||
networks:
|
||||
- seafile-net
|
||||
|
||||
networks:
|
||||
seafile-net:
|
||||
name: seafile-net
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
COMPOSE_FILE='seafile-server.yml,caddy.yml,seadoc.yml'
|
||||
COMPOSE_FILE='seafile-server.yml,caddy.yml,seadoc.yml,elasticsearch.yml'
|
||||
COMPOSE_PATH_SEPARATOR=','
|
||||
|
||||
# Seafile & Basic services
|
||||
|
|
|
|||
|
|
@ -31,24 +31,6 @@ services:
|
|||
networks:
|
||||
- seafile-net
|
||||
|
||||
elasticsearch:
|
||||
image: ${SEAFILE_ELASTICSEARCH_IMAGE:-elasticsearch:8.15.0}
|
||||
container_name: seafile-elasticsearch
|
||||
environment:
|
||||
- discovery.type=single-node
|
||||
- bootstrap.memory_lock=true
|
||||
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
|
||||
- "xpack.security.enabled=false"
|
||||
ulimits:
|
||||
memlock:
|
||||
soft: -1
|
||||
hard: -1
|
||||
mem_limit: 4g
|
||||
volumes:
|
||||
- "${SEAFILE_ELASTICSEARCH_VOLUME:-/opt/seafile-elasticsearch/data}:/usr/share/elasticsearch/data"
|
||||
networks:
|
||||
- seafile-net
|
||||
|
||||
seafile:
|
||||
image: ${SEAFILE_IMAGE:-seafileltd/seafile-pro-mc:12.0-latest}
|
||||
container_name: seafile
|
||||
|
|
|
|||
Loading…
Reference in New Issue