-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
54 lines (51 loc) · 1.5 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
---
# https://kafka.apache.org/quickstart-docker
# https://github.com/simplesteph/kafka-stack-docker-compose/blob/master/zk-single-kafka-single.yml
version: '3.5'
services:
database:
image: 'mongo'
container_name: 'quarkus-mongodb-container'
environment:
- MONGO_INITDB_DATABASE=ebuilder
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=redhat-20
volumes:
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
# - ./mongo-volume:/data/db
ports:
- '27017-27019:27017-27019'
networks:
- my-network
zookeeper:
image: strimzi/kafka:0.11.4-kafka-2.1.0
command: [
"sh", "-c",
"bin/zookeeper-server-start.sh config/zookeeper.properties"
]
ports:
- "2181:2181"
environment:
LOG_DIR: /tmp/logs
networks:
- my-network
kafka:
image: strimzi/kafka:0.11.4-kafka-2.1.0
command: [
"sh", "-c",
"bin/kafka-server-start.sh config/server.properties --override listeners=$${KAFKA_LISTENERS} --override advertised.listeners=$${KAFKA_ADVERTISED_LISTENERS} --override zookeeper.connect=$${KAFKA_ZOOKEEPER_CONNECT}"
]
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
LOG_DIR: "/tmp/logs"
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
networks:
- my-network
networks:
my-network:
name: idaaseventbuilder-network