-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yml
90 lines (83 loc) · 2.23 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
79
80
81
82
83
84
85
86
87
88
89
90
services:
mysql:
image: mysql:9.0.1
container_name: mysql
restart: unless-stopped
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=moviesdb
- MYSQL_ROOT_PASSWORD=secret
healthcheck:
test: "mysqladmin ping -u root -p$${MYSQL_ROOT_PASSWORD}"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.25
container_name: elasticsearch
restart: unless-stopped
ports:
- "9200:9200"
- "9300:9300"
environment:
discovery.type: single-node
xpack.security.enabled: false
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
healthcheck:
test: "curl -f http://localhost:9200 || exit 1"
logstash:
image: docker.elastic.co/logstash/logstash:7.17.25
container_name: logstash
restart: unless-stopped
ports:
- "5044:5044"
volumes:
- ./logstash/pipeline:/usr/share/logstash/pipeline/
depends_on:
- elasticsearch
healthcheck:
test: "curl -f http://localhost:9600 || exit 1"
kibana:
image: docker.elastic.co/kibana/kibana:7.17.25
container_name: kibana
restart: unless-stopped
ports:
- "5601:5601"
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
depends_on:
- elasticsearch
healthcheck:
test: "curl -f http://localhost:5601 || exit 1"
filebeat:
build: filebeat
container_name: filebeat
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/containers:/usr/share/dockerlogs/data:ro
depends_on:
- elasticsearch
- logstash
prometheus:
image: prom/prometheus:v2.55.1
container_name: prometheus
restart: unless-stopped
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "9090" ]
grafana:
image: grafana/grafana:11.3.0
container_name: grafana
restart: unless-stopped
ports:
- "3000:3000"
environment:
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
depends_on:
- prometheus
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "3000" ]