-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathswarm-stack.yml
181 lines (179 loc) · 5.05 KB
/
swarm-stack.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
version: '3.8'
services:
opentelemetry-collector:
image: ${DOCKER_PROXY:-}otel/opentelemetry-collector-contrib
environment:
TZ: 'Europe/Berlin'
volumes:
- ${DATA_PATH}/otel/otel-collector.yaml:/etc/otelcol-contrib/config.yaml
ports:
- "2003:2003" # Carbon receiver
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
- "8006:8006" # fluentforward
- "8086:8086" # InfluxDB receiver
- "9411:9411" # zipkin extension
- "13133:13133" # health_check extension
- "14250:14250" # jaeger extension (model.proto)
- "14268:14268" # jaeger extension (jaeger.thrift)
- "54526:54526" # Syslog
- "54526:54526/udp" # Syslog
- "55678:55678" # OpenCensus receiver
networks:
- internal
logging:
driver: "json-file"
options:
max-file: 5
max-size: 10m
deploy:
update_config:
order: start-first
kafka:
image: ${DOCKER_PROXY:-}bitnami/kafka:3.4
stop_grace_period: 300s
environment:
TZ: 'Europe/Berlin'
KAFKA_ENABLE_KRAFT: 'yes'
KAFKA_CFG_PROCESS_ROLES: 'broker,controller'
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
KAFKA_CFG_LISTENERS: 'PLAINTEXT://:9092,CONTROLLER://:9093'
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: 'CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT'
KAFKA_CFG_ADVERTISED_LISTENERS: 'PLAINTEXT://10.1.2.10:9092'
KAFKA_BROKER_ID: '1'
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: '[email protected]:9093'
ALLOW_PLAINTEXT_LISTENER: 'yes'
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'
volumes:
- ${DATA_PATH}/kafka:/bitnami/kafka
ports:
- "9092:9092"
networks:
- internal
logging:
driver: "json-file"
options:
max-file: 5
max-size: 10m
loki:
image: ${DOCKER_PROXY:-}grafana/loki
command: -config.file=/loki/config.yaml
environment:
TZ: 'Europe/Berlin'
volumes:
- ${DATA_PATH}/loki:/loki
ports:
- "3100:3100"
networks:
- internal
logging:
driver: "fluentd"
options:
fluentd-address: "127.0.0.1:8006"
fluentd-async: 'true'
fluentd-max-retries: '5'
fluentd-sub-second-precision: 'true'
loki-exporter:
image: ${DOCKER_PROXY:-}otel/opentelemetry-collector-contrib
environment:
TZ: 'Europe/Berlin'
volumes:
- ${DATA_PATH}/otel/loki-exporter.yaml:/etc/otelcol-contrib/config.yaml
networks:
- internal
logging:
driver: "fluentd"
options:
fluentd-address: "127.0.0.1:8006"
fluentd-async: 'true'
fluentd-max-retries: '5'
fluentd-sub-second-precision: 'true'
mimir:
image: ${DOCKER_PROXY:-}grafana/mimir
command: --config.file=/etc/mimir/config.yaml
volumes:
- ${DATA_PATH}/mimir/config:/etc/mimir
- ${DATA_PATH}/mimir/tsdb:/tsdb
ports:
- "9009:9009"
networks:
- internal
- web
logging:
driver: "fluentd"
options:
fluentd-address: "127.0.0.1:8006"
fluentd-async: 'true'
fluentd-max-retries: '5'
fluentd-sub-second-precision: 'true'
mimir-exporter:
image: ${DOCKER_PROXY:-}otel/opentelemetry-collector-contrib
environment:
TZ: 'Europe/Berlin'
volumes:
- ${DATA_PATH}/otel/mimir-exporter.yaml:/etc/otelcol-contrib/config.yaml
networks:
- internal
logging:
driver: "fluentd"
options:
fluentd-address: "127.0.0.1:8006"
fluentd-async: 'true'
fluentd-max-retries: '5'
fluentd-sub-second-precision: 'true'
minio:
image: ${DOCKER_PROXY:-}minio/minio
command: server --address 0.0.0.0:9000 /data
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- ${DATA_PATH}/minio:/data
networks:
- internal
logging:
driver: "fluentd"
options:
fluentd-address: "127.0.0.1:8006"
fluentd-async: 'true'
fluentd-max-retries: '5'
fluentd-sub-second-precision: 'true'
alertmanager:
image: ${DOCKER_PROXY:-}prom/alertmanager
environment:
TZ: 'Europe/Berlin'
ports:
- "9093:9093"
volumes:
- ${DATA_PATH}/alertmanager/data:/alertmanager
- ${DATA_PATH}/alertmanager/config:/etc/alertmanager
networks:
- internal
logging:
driver: "fluentd"
options:
fluentd-address: "127.0.0.1:8006"
fluentd-async: 'true'
fluentd-max-retries: '5'
fluentd-sub-second-precision: 'true'
grafana:
image: ${DOCKER_PROXY:-}grafana/grafana
environment:
GF_SERVER_ROOT_URL: 'https://grafana.example.com'
ports:
- "3000:3000"
volumes:
- ${DATA_PATH}/grafana/data:/var/lib/grafana
- ${DATA_PATH}/grafana/provisioning:/etc/grafana/provisioning
networks:
- internal
logging:
driver: "fluentd"
options:
fluentd-address: "127.0.0.1:8006"
fluentd-async: 'true'
fluentd-max-retries: '5'
fluentd-sub-second-precision: 'true'
networks:
internal:
driver: overlay