-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathdocker-compose.yml
128 lines (122 loc) · 3.07 KB
/
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
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
services:
notebooks:
build:
context: .
dockerfile: build/Dockerfile
container_name: aips-notebooks
ports:
- 7077:7077 # Spark Master
- 8082:8080 # Spark Master UI - 8082 less likely to conflict
- 8081:8081 # Spark Worker UI
- 4041:4041 # Spark UI
- 8888:8888 # Jupyter Notebook UI
- 2345:2345 # Search Webserver
networks:
- solr-network
- opensearch-network
restart: unless-stopped
environment:
#PYSPARK_SUBMIT_ARGS: '--jars /usr/local/spark/lib/spark-solr-4.0.0-shaded.jar pyspark-shell'
#NB_USER: 'aips'
#NB_UID: 1010
#NB_GID: 1020
#CHOWN_HOME: 'yes'
#CHOWN_HOME_OPTS: -R
SOLR_HOST: 'aips-solr'
volumes:
- type: bind
source: "."
target: "/tmp/notebooks/"
profiles:
- all
- ""
solr:
build:
context: ./engines/solr/build/
dockerfile: Dockerfile
container_name: aips-solr
hostname: aips-solr
ports:
- 8983:8983
environment:
- ZK_HOST=aips-zk:2181
- SOLR_HOST=aips-solr
networks:
- zk-solr
- solr-network
restart: unless-stopped
depends_on:
- zookeeper
- notebooks
profiles:
- all
- ""
opensearch:
build:
context: ./engines/opensearch/build/
dockerfile: engine-Dockerfile
container_name: opensearch-node1
hostname: aips-opensearch
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-node1
- discovery.type=single-node
- network.host=0.0.0.0
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=''"
- "DISABLE_SECURITY_PLUGIN=true"
- "OPENSEARCH_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: 262114 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
hard: 262114
volumes:
- opensearch-data:/usr/share/opensearch/data
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
expose:
- 9200:9200
networks:
- opensearch-network
depends_on:
- notebooks
- opensearch-dashboards
profiles:
- all
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.14.0
container_name: opensearch-dashboards
ports:
- 5601:5601
expose:
- 5601:5601
environment:
DISABLE_SECURITY_DASHBOARDS_PLUGIN: "true"
OPENSEARCH_HOSTS: '["http://opensearch-node1:9200"]'
networks:
- opensearch-network
profiles:
- all
zookeeper:
image: zookeeper:3.5.8
container_name: aips-zk
hostname: aips-zk
ports:
- 2181:2128
networks:
- zk-solr
- solr-network
restart: unless-stopped
profiles:
- all
- ""
volumes:
opensearch-data:
networks:
zk-solr:
solr-network:
opensearch-network: