forked from openflagr/flagr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.kafka.yml
68 lines (63 loc) · 1.34 KB
/
docker-compose.kafka.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
mysql:
image: mysql:5.6
container_name: flagr-mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=flagr
- MYSQL_USER=root
ports:
- "18100:3306"
mysql8:
image: mysql:8
container_name: flagr-mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=flagr
- MYSQL_USER=root
ports:
- "18101:3306"
postgres:
image: postgres:13
container_name: flagr-postgres
environment:
POSTGRES_PASSWORD: "test"
POSTGRES_USER: "test"
POSTGRES_DB: "flagr"
ports:
- "18102:5432"
zookeeper:
image: confluentinc/cp-zookeeper
container_name: flagr-zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- "2181:2181"
extra_hosts:
- "moby:127.0.0.1"
kafka:
image: confluentinc/cp-kafka
container_name: flagr-kafka
links:
- zookeeper
environment:
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://localhost:9092"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_BROKER_ID: 1
ports:
- "9092:9092"
extra_hosts:
- "moby:127.0.0.1"
kafka-manager:
image: sheepkiller/kafka-manager
container_name: flagr-kafka-manager
ports:
- "9000:9000"
links:
- zookeeper
- kafka
environment:
ZK_HOSTS: "zookeeper:2181"
extra_hosts:
- "moby:127.0.0.1"