-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yaml
143 lines (139 loc) · 3.65 KB
/
docker-compose.yaml
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
services:
# NATS variants
nats:
image: nats:latest
ports:
- 4222:4222
expose:
- 4222
nats-tls:
image: nats:latest
ports:
- "4223:4222"
expose:
- 4223
command: [
"--tls",
"--tlscert", "/certs/server-cert.pem",
"--tlskey", "/certs/server-key.pem",
]
volumes:
- ./tmp/certs/nats:/certs
nats-tls-basic-auth:
image: nats:latest
ports:
- 4224:4222
expose:
- 4224
command: [
"--tls",
"--tlscert", "/certs/server-cert.pem",
"--tlskey", "/certs/server-key.pem",
"--user", "user",
"--pass", "password",
]
volumes:
- ./tmp/certs/nats:/certs
# NATS Jetstream variants
nats-jetstream:
image: nats:latest
ports:
- 4225:4222
expose:
- 4225
command: [
"-js",
]
nats-jetstream-tls:
image: nats:latest
ports:
- 4226:4222
expose:
- 4226
command: [
"-js",
"--tls",
"--tlscert", "/certs/server-cert.pem",
"--tlskey", "/certs/server-key.pem",
]
volumes:
- ./tmp/certs/nats:/certs
nats-jetstream-tls-basic-auth:
image: nats:latest
ports:
- 4227:4222
expose:
- 4227
command: [
"-js",
"--tls",
"--tlscert", "/certs/server-cert.pem",
"--tlskey", "/certs/server-key.pem",
"--user", "user",
"--pass", "password",
]
volumes:
- ./tmp/certs/nats:/certs
# Kafka variants
kafka:
image: bitnami/kafka:3.5.1
ports:
- 9092:9092
- 9093:9093
expose:
- 9092
- 9093
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_LISTENERS=INTERNAL://:9092,CONTROLLER://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=INTERNAL://localhost:9092
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,INTERNAL:PLAINTEXT
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@:9093
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=INTERNAL
kafka-tls:
image: bitnami/kafka:3.5.1
ports:
- 9094:9094
- 9095:9095
expose:
- 9094
- 9095
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_LISTENERS=INTERNAL://:9094,CONTROLLER://:9095
- KAFKA_CFG_ADVERTISED_LISTENERS=INTERNAL://localhost:9094
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,INTERNAL:SSL
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@:9095
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=INTERNAL
- KAFKA_TLS_TYPE=PEM
- KAFKA_TLS_CLIENT_AUTH=none
volumes:
- ./tmp/certs/kafka:/bitnami/kafka/config/certs/
kafka-tls-basic-auth:
image: bitnami/kafka:3.5.1
ports:
- 9096:9096
- 9097:9097
expose:
- 9096
- 9097
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_LISTENERS=INTERNAL://:9096,CONTROLLER://:9097
- KAFKA_CFG_ADVERTISED_LISTENERS=INTERNAL://localhost:9096
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,INTERNAL:SASL_SSL
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@:9097
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=INTERNAL
- KAFKA_CFG_SASL_MECHANISM_INTER_BROKER_PROTOCOL=SCRAM-SHA-512
- KAFKA_TLS_TYPE=PEM
- KAFKA_TLS_CLIENT_AUTH=none
- KAFKA_INTER_BROKER_USER=user
- KAFKA_INTER_BROKER_PASSWORD=password
volumes:
- ./tmp/certs/kafka:/bitnami/kafka/config/certs/