forked from fredyyy998/ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.infrastructure.yml
46 lines (40 loc) · 1.12 KB
/
docker-compose.infrastructure.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
version: '3.1'
services:
db:
container_name: db
image: postgres
restart: unless-stopped
environment:
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
zookeeper:
container_name: zookeeper
image: wurstmeister/zookeeper:latest
restart: unless-stopped
ports:
- "2181:2181"
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=zookeeper:2888:3888
kafka:
image: wurstmeister/kafka:latest
restart: unless-stopped
container_name: kafka
depends_on:
- zookeeper
ports:
- "9092:9092"
- "19092:19092"
environment:
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:9092,EXTERNAL://localhost:19092
KAFKA_LISTENERS: INTERNAL://0.0.0.0:9092,EXTERNAL://0.0.0.0:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "account:1:1,inventory:1:1,shopping-cart:1:1,fulfillment:1:1"
volumes:
db-data:
driver: local