-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.15 KB
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
# Use the default network olog_default.
services:
olog:
build: .
ports:
- "8080:8080"
- "8181:8181"
depends_on:
mongo:
condition: service_started
elastic:
condition: service_healthy
environment:
MONGO_HOST: mongo
ELASTICSEARCH_NETWORK_HOST: elasticsearch
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"
hostname:
elasticsearch
ports:
- 9200:9200
volumes:
- olog-esdata:/usr/share/elasticsearch/data
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test: curl -f http://elasticsearch:9200/_cluster/health
interval: 5s
timeout: 60s
retries: 10
# Configure persistent storage for mongo and elastic.
volumes:
olog-esdata:
driver: local
olog-mongodata:
driver: local