forked from lordofthejars/nosql-unit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.2 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
version: '2.2'
services:
nosqlunit-elasticsearch6.elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.7.1
environment:
- discovery.type=single-node
#- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
#volumes:
# - esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
nosqlunit-net:
aliases:
- elasticsearch6
nosqlunit.maven:
image: maven:3.6.0-jdk-8-alpine
stop_signal: SIGKILL
stdin_open: true
tty: true
working_dir: $PWD
volumes:
- $PWD:$PWD
- /var/run/docker.sock:/var/run/docker.sock
# Maven cache (optional)
- ~/.m2:/root/.m2
networks:
nosqlunit-net:
aliases:
- maven
#command: mvn -B -Pintegration-tests clean install
nosqlunit.wait:
image: waisbrot/wait
depends_on:
- nosqlunit.maven
- nosqlunit-elasticsearch6.elasticsearch
environment:
- TARGETS=elasticsearch6:9200
networks:
nosqlunit-net:
aliases:
- wait
networks:
nosqlunit-net: