-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
45 lines (43 loc) · 1.02 KB
/
docker-compose.yaml
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
version: "3"
services:
elasticsearch-source:
image: docker.elastic.co/elasticsearch/elasticsearch:${ES_VERSION}
container_name: elasticsearch-source
env_file:
- ./.env
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
ports:
- ${ES_SOURCE_PORT}:9200
elasticsearch-dest:
image: docker.elastic.co/elasticsearch/elasticsearch:${ES_VERSION}
container_name: elasticsearch-dest
env_file:
- ./.env
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- reindex.remote.whitelist=${LOCAL_IP}:${ES_SOURCE_PORT}
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
ports:
- ${ES_DEST_PORT}:9200