-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 1.11 KB
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
name: yape-resources
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.5.3
container_name: zookeeper_server
environment:
ZOOKEEPER_CLIENT_PORT: 2181
kafka:
image: confluentinc/cp-enterprise-kafka:5.5.3
container_name: kafka_server
depends_on: [ zookeeper ]
environment:
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://kafka:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_JMX_PORT: 9991
ports:
- "9092:9092"
ms-antifraud:
build: .
image: ciprianobryan/ms-antifraud:0.0.1
container_name: ms-antifraud
depends_on:
- kafka
ports:
- "8081:8080"
environment:
TRANSACTION_MAX_AMOUNT_TO_BE_APROVED: 1000
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
KAFKA_CONSUMER_GROUP_ID: antifraud-group
KAFKA_TOPIC_TRANSACTION_CREATED: transaction-created
KAFKA_TOPIC_TRANSACTION_VALIDATED: transaction-validated
volumes:
postgres_data: