-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
56 lines (53 loc) · 1.27 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
52
53
54
55
56
# Use the default network olog_default.
version: "3.7"
services:
olog:
build: .
ports:
- "8080:8080"
- "8181:8181"
depends_on:
- mongo
- elastic
environment:
mongo.host: mongo
elasticsearch.network.host: elastic
# Ensure that the elastic server is up before starting olog.
command: >
/bin/bash -c "
while ! curl -s -f elastic:9200/_cluster/health?wait_for_status=yellow;
do
echo Waiting for Elasticsearch;
sleep 1;
done;
java -jar 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