-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose-integrationtest.yml
65 lines (62 loc) · 1.65 KB
/
docker-compose-integrationtest.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
# Use the default network olog_default.
version: "3.7"
services:
olog:
build:
context: .
dockerfile: Dockerfile.integrationtest
ports:
- "8080:8080"
- "8181:8181"
depends_on:
- mongo
- elastic
# Ensure that the elastic server is up before starting olog.
environment:
ldap.enabled: "false"
embedded_ldap.enabled: "false"
demo_auth.enabled: "true"
skipITCoverage: "true"
mongo.host: mongo
elasticsearch.network.host: elastic
command: >
/bin/bash -c "
while ! curl -s -f elastic:9200/_cluster/health?wait_for_status=yellow;
do
echo Waiting for Elasticsearch;
sleep 1;
done;
if [ ${skipITCoverage} == false ]; then
export JAVA_TOOL_OPTIONS=-javaagent:/olog-target/jacocoagent.jar=destfile=/olog-target/jacoco.exec,output=file,append=false
fi
java -jar /olog-target/service-olog*.jar --spring.config.name=application-docker
"
mongo:
image: mongo
ports:
- 27017:27017
volumes:
- olog-mongodata:/etc/mongo
elastic:
image: elasticsearch:8.2.3
environment:
cluster.name: elasticsearch
bootstrap.memory_lock: "true"
discovery.type: single-node
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
xpack.security.enabled: "false"
xpack.security.http.ssl.enabled: "false"
ports:
- 9200:9200
volumes:
- olog-esdata:/usr/share/elasticsearch/data
ulimits:
memlock:
soft: -1
hard: -1
# Configure persistent storage for mongo and elastic.
volumes:
olog-esdata:
driver: local
olog-mongodata:
driver: local