-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-orig.yml
63 lines (58 loc) · 1.92 KB
/
docker-compose-orig.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3'
services:
odfe-node1:
image: amazon/opendistro-for-elasticsearch:1.8.0
container_name: odfe-node1
environment:
- cluster.name=odfe-cluster
- node.name=odfe-node1
- discovery.seed_hosts=odfe-node1
- cluster.initial_master_nodes=odfe-node1
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the Elasticsearch user, set to at least 65536 on modern systems
hard: 65536
volumes:
- odfe-data1:/usr/share/elasticsearch/data
- ./config.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/config.yml
- ./internal_users.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml
- ./roles_mapping.yml:/usr/share/elasticsearch/plugins/opendistro_security/securityconfig/roles_mapping.yml
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
networks:
- odfe-net
openldap:
image: osixia/openldap:1.3.0
container_name: openldap
command: --copy-service # seemingly required to load directory.ldif
ports:
- 389:389
- 636:636
environment:
- LDAP_ADMIN_PASSWORD=changethis
- LDAP_READONLY_USER=true
- LDAP_READONLY_USER_PASSWORD=changethistoo
volumes:
- ./directory.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/directory.ldif
networks:
- odfe-net
openldap-admin:
image: osixia/phpldapadmin:0.9.0
container_name: openldap-admin
ports:
- 6443:443
environment:
- PHPLDAPADMIN_LDAP_HOSTS=openldap
networks:
- odfe-net
volumes:
odfe-data1:
odfe-data2:
networks:
odfe-net: