-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
31 lines (30 loc) · 917 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version: '2.2'
services:
elasticsearch:
# DOCKER_TAG will be provided by the .env-file
image: r0wi/elasticsearch-nextcloud-docker:${DOCKER_TAG}
env_file: .env
container_name: elasticsearch_nc
restart: always
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
# Disable authentication and ssl completely
- xpack.security.enabled=false
# Use this to enable Basic Authentication:
# - xpack.security.enabled=true
# - xpack.security.http.ssl.enabled=false
# - ELASTIC_PASSWORD=mySuperSecret
ulimits:
memlock:
soft: -1
hard: -1
volumes:
# Use named volume because of permission problems
- elasticsearch_data:/usr/share/elasticsearch/data
ports:
- 127.0.0.1:9200:9200
volumes:
elasticsearch_data: