-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
61 lines (57 loc) · 1.32 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
version: '3'
services:
zoo:
image: wurstmeister/zookeeper
hostname: zoo
ports:
- "2181:2181"
expose:
- "2118"
environment:
ZOO_MY_ID: 1
ZOO_PORT: 2181
ZOO_SERVERS: server.1=zoo:2888:3888
kafka:
image: wurstmeister/kafka:2.12-2.2.0
hostname: kafka
ports:
- "9092:9092"
environment:
KAFKA_ZOOKEEPER_CONNECT: "zoo:2181"
KAFKA_BROKER_ID: "100"
KAFKA_NUM_PARTITIONS: "1"
KAFKA_LISTENERS: INTERNAL://kafka:9090,EXTERNAL://0.0.0.0:9092
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:9090,EXTERNAL://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
expose:
- "9092"
depends_on:
- zoo
payment:
build:
context: ./payment
dockerfile: Dockerfile
image: payment
ports:
- "8080:8080"
depends_on:
- kafka
payment_processing:
build:
context: ./payment_processing
dockerfile: Dockerfile
image: payment_processing
depends_on:
- kafka
payment_storage:
build:
context: ./payment_storage
dockerfile: Dockerfile
image: payment_storage
ports:
- "8081:8081"
expose:
- "8081" depends_on:
- kafka
- payment_processing