-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (68 loc) · 1.51 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
version: '3.3'
services:
jakartaee-hello-world:
build: .
container_name: jakartaee-hello-world
image: 'jakartaee-hello-world:v1'
ports:
- '8080:8080'
links:
- fluentd
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
depends_on:
fluentd:
condition: service_started
networks:
- elastic-network
fluentd:
build: ./fluentd
container_name: fluentd
user: root
volumes:
- /var/lib/docker/containers:/fluentd/log/containers # Example: Reading docker logs
- ./fluentd/conf:/fluentd/etc
links:
- "elasticsearch"
ports:
- "24224:24224"
- "24224:24224/udp"
depends_on:
- elasticsearch
- kibana
networks:
- elastic-network
elasticsearch:
image: elasticsearch:7.17.13
container_name: elasticsearch
environment:
- node.name=elasticsearch
- bootstrap.memory_lock=true
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
expose:
- 9200
ports:
- "9200:9200"
networks:
- elastic-network
kibana:
image: kibana:7.17.13
container_name: kibana
links:
- "elasticsearch"
ports:
- "5601:5601"
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
depends_on:
elasticsearch:
condition: service_started
networks:
- elastic-network
networks:
elastic-network:
driver: bridge