forked from elastic/elasticsearch-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (38 loc) · 1.03 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
version: '3.2'
services:
client:
image: docker.elastic.co/clients/elasticsearch-py:${PYTHON_VERSION:-3}
build:
context: .
dockerfile: ./Dockerfile
args:
PYTHON_VERSION: ${PYTHON_VERSION:-3}
environment:
- "TEST_ES_SERVER=http://elasticsearch:9200"
volumes:
- .:/code/elasticsearch-py
- esvol:/tmp
networks:
- esnet
depends_on:
- elasticsearch
command: ["true"] # dummy command to override the command in the Dockerfile and do nothing.
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ELASTICSEARCH_VERSION:-6.2.4}
volumes:
- esvol:/tmp
networks:
- esnet
environment:
- path.repo=/tmp
- "repositories.url.allowed_urls=http://*"
- node.attr.testattr=test
- bootstrap.memory_lock=false
- "node.name=test"
- "cluster.initial_master_nodes=test"
- "discovery.zen.ping.unicast.hosts=elasticsearch"
- "http.max_content_length=5mb"
networks:
esnet:
volumes:
esvol: