-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.pc1.yml
58 lines (54 loc) · 1.41 KB
/
docker-compose.pc1.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
version: '3.9'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ports:
- "2181:2181"
networks:
easycab_network:
ipv4_address: 192.168.2.116
kafka:
image: confluentinc/cp-kafka:latest
container_name: kafka
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://192.168.2.116:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT
KAFKA_ZOOKEEPER_CONNECT: 192.168.2.116:2181
KAFKA_DEFAULT_REPLICATION_FACTOR: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
ports:
- "9092:9092"
depends_on:
- zookeeper
networks:
easycab_network:
ipv4_address: 192.168.2.116
ec_customer_a:
build:
context: .
dockerfile: ./EC_Customer/Dockerfile
image: ec-customer-a:latest
container_name: ec_customer_a
environment:
SPRING_APPLICATION_NAME: EC_Customer_a
SPRING_KAFKA_BOOTSTRAP_SERVERS: 192.168.2.116:9092
CLIENT_ID: "a"
broker.address: 192.168.2.116:9092
file: destinations1.txt
ports:
- "9001:8080"
depends_on:
- kafka
networks:
- easycab_network
networks:
easycab_network:
driver: bridge
ipam:
config:
- subnet: 192.168.2.0/24