1afceba69b
* update to ES 7 * more updates to make tests run * update the test matrix * remove python 3.3 * update xpack apis * relative imports
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
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:
|