-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (67 loc) · 1.21 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
version: "3.7"
services:
debug:
build:
dockerfile: Dockerfile
context: .
target: builder
args:
app_name: kafka
ports:
- 8000
- 9000
volumes:
- .:/var/app
environment:
- TOPIC=protobuf
- BROKERS=kafka:9092
depends_on:
- kafka
consumer:
build:
dockerfile: Dockerfile
context: .
args:
app_name: kafka
ports:
- 8000
- 9000
volumes:
- .:/var/app
environment:
- TOPIC=protobuf
- BROKERS=kafka:9092
depends_on:
- kafka
producer:
build:
dockerfile: Dockerfile
context: .
args:
app_name: test
ports:
- 8000
- 9000
volumes:
- .:/var/app
environment:
- TOPIC=protobuf
- BROKERS=kafka:9092
depends_on:
- kafka
zookeeper:
image: wurstmeister/zookeeper
ports:
- 2181
kafka:
image: wurstmeister/kafka
ports:
- 9092
environment:
- KAFKA_ADVERTISED_HOST_NAME=kafka
- KAFKA_CREATE_TOPICS=test:10:1,stats:50:1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_PORT=9092
- KAFKA_ADVERTISED_PORT=9092
depends_on:
- zookeeper