-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
81 lines (78 loc) · 1.91 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
services:
worker:
build:
context: "."
dockerfile: "./build/local.Dockerfile"
args:
CMD_PATH: cmd/worker/worker
env_file: ./.env
environment:
CMD_PATH: cmd/worker/worker
volumes:
- ".:/go/src/go-kafka-http-sink"
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- go_net
zookeeper1:
image: bitnami/zookeeper:3.7.0-debian-10-r264
platform: linux/amd64
volumes:
- zookeeper1:/bitnami/zookeeper
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
go_net:
aliases:
- "zookeeper"
kafka1:
image: bitnami/kafka:2.8.0-debian-10-r84
platform: linux/amd64
volumes:
- kafka1:/bitnami/kafka
depends_on:
- zookeeper1
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,CLIENT:PLAINTEXT
- KAFKA_CFG_LISTENERS=INTERNAL://:9093,CLIENT://:9092
- KAFKA_CFG_ADVERTISED_LISTENERS=INTERNAL://kafka1:9093,CLIENT://kafka1:9092
networks:
go_net:
aliases:
- "kafka"
- "broker"
schema-registry:
image: bitnami/schema-registry:7.6.0
ports:
- "8081:8081"
depends_on:
- kafka1
networks:
go_net:
environment:
- SCHEMA_REGISTRY_HOST_NAME=schema-registry
- SCHEMA_REGISTRY_KAFKA_BROKERS=PLAINTEXT://broker:9092
akhq:
image: tchiotludo/akhq:0.24.0
environment:
AKHQ_CONFIGURATION: |
akhq:
connections:
local:
properties:
bootstrap.servers: "kafka:9092"
schema-registry:
url: "http://schema-registry:8081"
ports:
- 8080:8080
networks:
go_net:
networks:
go_net:
driver: bridge
volumes:
zookeeper1:
kafka1: