-
Notifications
You must be signed in to change notification settings - Fork 33
/
docker-compose.yml
48 lines (43 loc) · 1.15 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
version: "3"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.1
environment:
- discovery.type=single-node
- xpack.security.enabled=false
networks:
- logging-network
logstash:
image: docker.elastic.co/logstash/logstash:7.1.1
depends_on:
- elasticsearch
ports:
- 12201:12201/udp
volumes:
- ./logstash.conf:/usr/share/logstash/pipeline/logstash.conf:ro
networks:
- logging-network
kibana:
image: docker.elastic.co/kibana/kibana:7.1.1
depends_on:
- logstash
ports:
- 5601:5601
networks:
- logging-network
httpd:
image: httpd:latest
depends_on:
- logstash
ports:
- 80:80
logging:
driver: gelf
options:
# Use udp://host.docker.internal:12201 when you are using Docker Desktop for Mac
# docs: https://docs.docker.com/docker-for-mac/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host
# issue: https://github.com/lvthillo/docker-elk/issues/1
gelf-address: "udp://localhost:12201"
networks:
logging-network:
driver: bridge