-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
52 lines (52 loc) · 1.52 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
version: '2'
services:
eventsourcing_postgres:
image: postgres:12.1
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- 5432:5432
eventsourcing_zookeeper:
image: confluentinc/cp-zookeeper
ports:
- 32181:32181
environment:
ZOOKEEPER_CLIENT_PORT: 32181
ZOOKEEPER_TICK_TIME: 2000
extra_hosts:
- "moby:127.0.0.1"
- "localhost: 127.0.0.1"
eventsourcing_kafka:
image: confluentinc/cp-kafka
ports:
- 29092:29092
- 9092:9092
depends_on:
- eventsourcing_zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: eventsourcing_zookeeper:32181
KAFKA_LISTENERS: "INTERNAL://:9092,EXTERNAL://:29092"
KAFKA_ADVERTISED_LISTENERS: "INTERNAL://eventsourcing_kafka:9092,EXTERNAL://localhost:29092"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT"
KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL"
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_DELETE_TOPIC_ENABLE: "true"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_NUM_PARTITIONS: 1
extra_hosts:
- "moby:127.0.0.1"
- "localhost: 127.0.0.1"
eventsourcing_kafdrop:
image: obsidiandynamics/kafdrop
ports:
- 9000:9000
depends_on:
- eventsourcing_kafka
environment:
KAFKA_BROKERCONNECT: eventsourcing_kafka:9092
JVM_OPTS: "-Xms32M -Xmx64M"
SERVER_SERVLET_CONTEXTPATH: "/"
extra_hosts:
- "moby:127.0.0.1"
- "localhost: 127.0.0.1"