-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (76 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
77 lines (76 loc) · 1.75 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
sender_worker:
container_name: sender
build:
context: ./
dockerfile: ./SenderWorker/Dockerfile
networks:
- efk_network
restart: always
depends_on:
- fluentd
- elastic
- kibana
receiver_worker:
container_name: receiver
build:
context: ./
dockerfile: ./ReceiverWorker/Dockerfile
networks:
- efk_network
restart: always
depends_on:
- fluentd
- elastic
- kibana
fluentd:
container_name: fluentd
build: ./
volumes:
- ./fluent.conf:/fluentd/etc/fluent.conf
networks:
- efk_network
restart: always
depends_on:
- elastic
- kibana
ports:
- "24224:24224"
- "24224:24224/udp"
############################# Elastic Search ###############################
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:8.2.2
healthcheck:
test: ["CMD", "telnet", "localhost:9200"]
interval: 30s
timeout: 120s
retries: 5
container_name: elastic
ports:
- "9200:9200"
- "9300:9300"
environment:
- xpack.security.enabled=false
- discovery.type=single-node
networks:
- efk_network
restart: always
kibana:
image: docker.elastic.co/kibana/kibana:8.2.2
container_name: kibana
healthcheck:
test: ["CMD", "curl", "localhost:5601/app/home"]
interval: 60s
timeout: 10s
retries: 5
depends_on:
- elastic
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_HOSTS=http://elastic:9200/
networks:
- efk_network
restart: always
networks:
efk_network: