-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (41 loc) · 1017 Bytes
/
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
version: '3'
services:
app:
image: divya063/test:latest
container_name: python_app
environment:
- PYTHONUNBUFFERED=1
labels:
- app
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
depends_on:
- app
kibana:
image: "docker.elastic.co/kibana/kibana:7.5.1"
ports:
- "5601:5601"
depends_on:
- elasticsearch
filebeat:
image: "divya063/test:filebeat"
user: root
volumes:
# Bind-mount the Docker log directory from the app container, so Filebeat can read its files
- "/var/lib/docker/containers:/var/lib/docker/containers"
- /var/lib/docker:/var/lib/docker"
- /var/run/:/var/run/
depends_on:
- app
- elasticsearch
- kibana