-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
109 lines (98 loc) · 2.72 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
image: confluentinc/cp-kafka:latest
container_name: kafka
depends_on:
- zookeeper
ports:
- 9092:9092
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://host.docker.internal:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
kafka-ui:
image: provectuslabs/kafka-ui
container_name: kafka-ui
ports:
- "9093:8080"
restart: always
environment:
- KAFKA_CLUSTERS_0_NAME=local
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092
zipkin:
image: openzipkin/zipkin
container_name: zipkin
ports:
- "9411:9411"
loki:
container_name: loki
image: grafana/loki:2.7.4
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
promtail:
container_name: promtail
image: grafana/promtail:2.7.4
volumes:
- /var/log:/var/log
command: -config.file=/etc/promtail/config.yml
grafana:
container_name: grafana
image: grafana/grafana:latest
ports:
- "3000:3000"
volumes:
- ./config/grafana/:/etc/grafana/provisioning/
pizza-shop-web-receiver:
image: pizza-shop-web-receiver:latest
container_name: pizza-shop-web-receiver
depends_on:
- kafka
ports:
- "10010:10010"
environment:
MANAGEMENT_ZIPKIN_TRACING_ENDPOINT: http://zipkin:9411/api/v2/spans
SPRING_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
pizza-shop-transformer:
image: pizza-shop-transformer:latest
container_name: pizza-shop-transformer
depends_on:
- kafka
ports:
- "10011:10011"
environment:
MANAGEMENT_ZIPKIN_TRACING_ENDPOINT: http://zipkin:9411/api/v2/spans
SPRING_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
pizza-shop-repository:
image: pizza-shop-repository:latest
container_name: pizza-shop-repository
depends_on:
- kafka
ports:
- "10012:10012"
environment:
MANAGEMENT_ZIPKIN_TRACING_ENDPOINT: http://zipkin:9411/api/v2/spans
SPRING_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"