-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (71 loc) · 1.81 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3.8"
volumes:
esdata:
kibanadata:
logstashdata:
filebeatdata:
nginx-logs:
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.10.4
volumes:
- "esdata:/usr/share/elasticsearch/data"
ports:
- "9200:9200"
environment:
- discovery.type=single-node
- xpack.security.enabled=false
kibana:
image: docker.elastic.co/kibana/kibana:8.10.4
volumes:
- "kibanadata:/usr/share/kibana/data"
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
logstash:
image: docker.elastic.co/logstash/logstash:8.10.4
ports:
- "5044:5044/udp"
volumes:
- "logstashdata:/usr/share/logstash/data"
- "./deploy/logstash.conf:/usr/share/logstash/pipeline/logstash.conf:ro"
- "nginx-logs:/var/log/nginx/:ro"
environment:
- xpack.monitoring.enabled=false
- ELASTIC_HOSTS=http://elasticsearch:9200
filebeat:
image: docker.elastic.co/beats/filebeat:8.10.4
volumes:
- "filebeatdata:/usr/share/filebeat/data"
- "./deploy/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro"
- "nginx-logs:/var/log/nginx/:ro"
environment:
- LOGSTASH_HOSTS=logstash:5045
app:
build:
context: .
dockerfile: ./deploy/Dockerfile
ports:
- "5000:5000"
volumes:
- "./app:/code"
environment:
- PYTHONUNBUFFERED=1
env_file:
- .env
nginx:
image: nginx:1.19.2
volumes:
- "./deploy/etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro"
- "./deploy/etc/nginx/conf.d:/etc/nginx/conf.d:ro"
- "nginx-logs:/var/log/nginx/"
depends_on:
- app
ports:
- "8080:80"
logging:
driver: gelf
options:
gelf-address: udp://127.0.0.1:5044
tag: nginx-docker